allow lthread_sleep() to yield if msec = 0