fix pthread_cond_wait cancellation race