ci: add CMAKE_LINK_WARNING_AS_ERROR to macOS jobs

bitcoin/bitcoin: PR #36936

The review is inconclusive; no findings were published.

Coverage details