[tor-commits] [tor/master] Harden check_private_dir() to remove any potential race.