It feels unsafe not to lock _threads_mutex between terminate_threads()