thermal/debugfs: Fix two locking issues with thermal zone debug (CVE-2024-36961) | HOL Guard CVE