driver core: fix memory leak on one error path in bus_register()