Automatically retry on macOS for some failures (#2012)

New Intel Mac VMs have been quite flaky due to some infra problems:
-
https://buildkite.com/bazel/bazel-bazel-github-presubmit/builds/22410#01909c6d-48fc-4298-9e3e-1702cc14b7dd
-
https://buildkite.com/bazel/bazel-bazel-github-presubmit/builds/22585#0190ea99-d981-4d95-aba8-ca3235f2543f

Add auto retry for exit codes of those failures.
1 file changed