[PATCH AUTOSEL 5.2 30/63] thermal: Fix use-after-free when unregistering thermal zone device