thread_cccondition bugfix