reduce calls to is_socket by 2/3.

It should also be possible to use the results to skip a Wait/Select loop if we
can see a socket signaled right away using the result from WSAEnumNetworkEvents
rather than discarding it.