tsan: add pthread_barrier_t test