adding conditionlock to user_thread_controller.need_wait