[PATCH 4.14 39/61] thermal: Fix use-after-free when unregistering thermal zone device