Implement KThread.join().