driver-core: fix race between device_register and driver_register