fn get_in_place_thread_registry( registry: Option<&Arc<Registry>>, ) -> (Option<&WorkerThread>, Option<&Arc<Registry>>)