Fix signalled wakeups from timed sleeps