[PATCH v2 1/4] selftests: x86: check_initial_reg_state: remove manual counting and increase maintainability