[PATCH 6.1 293/313] thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()