Fix reconnect test.
Fix reconnect test.

Reconnect test depended on arbitrary timeout, and in many
cases connection was accepted despite socket close.

haskell-distributed/network-transport-tcp,hackern/network-transport-tcp,tweag/network-transport-tcp,aycanirican/network-transport-tcp