thr_join
CHECKr(pthread_create(&tid[1], NULL, thr_join, &tid[0]));
#define ub_thread_join(thread) LOCKRET(thr_join(thread, NULL, NULL))