thermal: intel: int340x: Add locking to int340x_thermal_get_trip_type()