[PATCH 04/13] x86: zboot: Avoid iteration in do_zboot_states()