allow control of thread monkeypatching