cmake: Add --fresh option to clear the cache and start from scratch

Simplify the workflow to re-run CMake from scratch as if a build tree
were never before processed, regardless of whether it has been.

Fixes: #23119
13 files changed