ctest: Restore support for -T Test without dashboard configuration
Since !9881 (merged) we drive dashboard
client steps through cmCTestHandlerCommand::ExecuteHandlerCommand
instead of calling ProcessHandler directly. This requires the
BuildDirectory to be known to establish a work directory.
Fixes: #26743 (closed)
Co-authored-by: @brad.king
Backport: release
Edited by Brad King