Fix IMA state emum values. Refactor ima_set/get_state()