fix netconn unit test for win32 UDP connections

The state was set to -1 for UDP, which causes failure.
The code was changed to set the state to SIGAR_TCP_CLOSE,
which is the same value set for the UDP sockets on linux.