Fix 'Thread object has no attribute _children' error on my machine.