fix return value on Thread::join