Merge changes from topic "thermal-status-restriction-job-refactor" into main

* changes:
  Restrict foreground jobs on thermal events
  Refactor ThermalStatusRestriction