[PATCH AUTOSEL 4.4 10/15] thermal: Fix use-after-free when unregistering thermal zone device