Protect against spurious wakeups