HEvent: Handle spurious wakeups in conditional variable.