[PATCH 3.16 43/72] thermal: Fix use-after-free when unregistering thermal zone device