[clang][NFC] Improve TemplateName traversal in RecursiveASTVisitor. (#218425)
Use a `TraverseQualifier` bool like we do for type, instead of doing the
decomposition ad-hoc in call sites.
This is (yet another PR) in preparation for P3670
Assisted-By: Opus 5