refs #156 moved pthread_join() outside of critical section