[PATCH AUTOSEL 5.4 02/17] rtc: fix use-after-free on device removal