[tor-commits] [tor/master] Refactor check_location_for_unix_socket()/check_location_for_socks_unix_socket() to eliminate duplicated code