[clang-tidy] Fix false positives about references in `misc-const-correctness` (#160971)
It's not legal to cast const pointer type to it's non-const reference
type implicitly, and will cause compile error.
And for explicit cast, it's legal but the pointer is mutable through
this reference.