Fix regression in SocketFactory with getnameinfo()