Fixed possible memory corruption in ProcessThread::init().