Preventing recursive calls of Scheduler::spin()