Add pthread_barrier_t, pthread_barrierattr_t, and pthread_spinlock_t.