[PATCH 5.15 260/917] thermal/core: Fix null pointer dereference in thermal_release()