Tweak EJ & UI job thermal policy.

Tweak the thermal restriction policy for expedited and user-initiated
jobs so we restrict them at THERMAL_STATUS_MODERATE if 1) they ran in
the past, or 2) they are running in overtime.

Bug: 230807327
Bug: 261999509
Test: atest FrameworksMockingServicesTests:ThermalStatusRestrictionTest
Change-Id: I252de23d77b1997abf258cb385e96bced16ac73a
2 files changed