Fix Thread::join()