[MC] Make MCParsedAsmOperand const in validateOperandClass (#245077)
This is the final commit in this rather large stack of changes to avoid
mutation of parsed operands inside `validateTargetOperandClass`. Make
the argument const so that it is guaranteed by the compiler that we
can't do in-place mutation inside the validate function.
Assisted-by: AI tooling
Pull-Request: https://github.com/llvm/llvm-project/pull/245077