[PATCH openEuler-5.10 68/71] PCI/sysfs: Take reference on device to be removed