PoC fix for issue #73

This limits exposure to the issue to Windows (and fixes our problems on Linux). But presumably the same thing can happen there, so it might be better to add an optional timeout to wait_until_socket_is_readable instead.