Fixed missing case on error check of pthread_barrier_wait.