closed #4123:fixed thread can cause deadlock in Scheduler::update.