fix erroneous pthread_cond_wait mutex waiter count logic due to typo