Handle spurious wakeups in io_timedwait/mch_delay