Fixes compilation of asyncio2 on Windows.

Added a close(PDispatcher, TSocketHandle) implementation which unregisters
the handle.