thermal: enhance thermal config parsing

1. Trigger FATAL crash for invalid thermal config
2. Add boundary check for thermal threshold

Bug: 223856015
Bug: 124822954
Bug: 221077673
Test: Side load thermal config with overlapped thresholds and confirm thermHAL can trigger crash
Change-Id: I58221455f7e893bcd2c753e98d1b625ba36cdc75
4 files changed