XThread::wait returns true if pthread_join is successful.