[tor-commits] [tor/master] Refactor connection_or_client_learned_peer_id for bug18812