thermal: Validate new state in cur_state_store()