[PATCH AUTOSEL 4.19 24/43] thermal: Fix use-after-free when unregistering thermal zone device