Fix extraneous queue unfix in threads_semWait()
threads_semWait(): init new item before reacquiring the queue lock
threads_semWait(): fix init new item
Merge branch 'master' into cond-variables