[PATCH v2 3/4] kselftest/arm64: Refactor parameter checking in mte_switch_mode()