Add barrier wait timer to Pthreads.