Make select_reactor more efficient on Windows for large numbers of sockets.

Fixes boost trac ticket #9528.