win32: prevent lost wakeups
Merge pull request #717 from OV2/master

win32: prevent lost wakeups