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