Merge pull request #4013 from ntherning/fix-assert-in-poll_event_wait-on-WSAENOTSOCK...