Update supported states when device has critical thermal status

Update supported states when the devices enters (or exits) the thermal
critical status. The device states marked with the flag will be disabled
when the device is overheating and removed from the supported states
list.

Bug: 264799106
Test: atest com.android.server.policy.DeviceStateProviderImplTest

Change-Id: I0623e5ca8a47664bf86b9e49fc2297c14024631e
3 files changed