[PATCH 3/3] zboot: Correct use of state_mask argument