Fixed potential deadlock when calling Thread::start() multiple times