Fixes for stable operation with SIM_ASYNCH_CLOCKS defined
Tolerate race condition which results in spurious timer thread wakeups which were causing the timer thread to exit. (SIM_ASYNCH_CLOCKS)