[cipd] Detect Mac ARM running under Rosetta
[cipd] Detect Mac ARM running under Rosetta

If a user has git for x64, `git cl` results in downloading x64 cipd
packages. Other operations, such as gclient or git-cl will result in
downloading arm64. This flip-flopping between architectures causes
unexpected behavior:
(1) slows down commands since packages are wiped and new ones are
downloaded.
(2) long running processes, such as goma may crash.

This change adds additional check for all macs running on x86 to check
if is running under Rosetta and sets ARCH=arm64 if true.

R=388ea68edb4d8f934960c128120aee09a8f854bf@google.com, fed16f3b8c1d592b33b38fd86d6071a96582657b@chromium.org

Bug: 1311733
Change-Id: I65b127467d5c47d5bf07952d2ecdcb93630c7c87
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/tools/depot_tools/+/3573068
Reviewed-by: Brian Ryner <388ea68edb4d8f934960c128120aee09a8f854bf@google.com>
Reviewed-by: Mason Freed <fed16f3b8c1d592b33b38fd86d6071a96582657b@chromium.org>
Commit-Queue: Josip Sokcevic <4606aec58cba917397ff2e4738f995e4758694f8@google.com>

CoherentLabs/depot_tools,CoherentLabs/depot_tools