tsan: properly intercept pthread_cond functions