base: make module_create_drivers_dir race-free