CTest: Fix '-T MemCheck' command-line support for sanitizers
In commit 49948f72 and commit 1e005ead,
the CMakeCommand
internal setting was left set only when using ctest -S
scripts. Instead simply use CTest's corresponding CMake directly
without passing it through an internal setting.
Fixes: #20584 (closed)