[PATCH AUTOSEL 5.3 33/71] thermal: Fix use-after-free when unregistering thermal zone device