[tor-commits] [tor/master] Use SOCKET_OK/TOR_INVALID_SOCKET in socketpair replacement code