Pin cmake version in macOS github Actions (#25998)
As a temporary solution for the
https://github.com/actions/runner-images/issues/12934 issue.
Azure DevOps pipelines and Gtihub Actions are updating cmake to version
4.* starting from September 8th . However, our macOS build's coreml EP
has a dependency that still depends on cmake 3.x. This PR provides a
hotfix to the issue.
This PR does not address the concern for ADO pipelines, which will be
solved later.