vdo_register_thread
vdo_register_thread(&allocating_threads, new_thread, flag_ptr);
vdo_register_thread(&device_id_thread_registry, new_thread, id_ptr);
void vdo_register_thread(struct thread_registry *registry,