[PATCH v5 08/13] KVM: arm64: selftests: Move reject_set check logic to a function