#52949: build: trim the non-link overhead of macOS release builds
Backport of #52883
See that PR for details. This also carries #52896, which was merged into #52883's branch and landed on main inside the same squash commit (d36eebf), so there is no separate 43-x-y backport for it.
Stacked: this branch includes the 43-x-y backports of #52059 (#52933, merged) and #52745 (#52942) because this change edits the BUILD_TOOLS_SHA line and the symbol-archive code they introduce. Please merge those two first; this PR's diff then reduces to the #52883 change.
Manual backport notes: BUILD_TOOLS_SHA goes to 458c9bf (from 4b75f1f after the #52059 backport); the "Validate inputs" step context in build-electron/action.yml is main-only and not part of this change. thin_lto_enable_cache, apple_toolchain/mac_bin_path, and the dist_zip flatten plumbing all exist on this branch. All other hunks are identical to main.
Notes: none
Backport Information
Semver Impact
Semantic Versioning helps users understand the impact of updates:
- Major (X.y.z): Breaking changes that may require code modifications
- Minor (x.Y.z): New features that maintain backward compatibility
- Patch (x.y.Z): Bug fixes that don't change the API
- None: Changes that don't affect using facing parts of Electron