[PATCH openEuler-5.10-LTS 02/31] driver core: fix deadlock in __device_attach