[openEuler-5.10-LTS 75/99] iio: trigger: sysfs: fix use-after-free on remove