[PATCH 4.19 065/114] thermal: Fix use-after-free when unregistering thermal zone device