std::rt::io::net::tcp: Fix one tcp test on Win32

Fixes `connect_error` part of #8811.