This version of hsEvent more accurately matches the previous (Win32)
behavior, and also serves as a proper binary semaphore.
Merge pull request #447 from zrax/hsEvent_fix

Fix hsEvent to match the old behavior better