Tests: Isolate more RunCMake cases from external ctest environment values
Fix a few RunCMake cases that were running ctest
without isolating it
from external environment values that affect its behavior. Add the isolation
logic to RunCTest so that tests using it do not need to duplicate the code.
Fixes: #24153 (closed)
Edited by Brad King