scripts: add MACHO tests to test-security-check.py
Summary:
This is a backport of core#18415
https://github.com/bitcoin/bitcoin/pull/18415/commits/1a4e9f32efcc5f6a74290446dc58784fd85c7b31
Test Plan:
On a MacOS machine, run:
cd contrib/devtools python3 test-security-check.py
Check that the MacOS specific test passes (the other ones will likely fail due to missing compilers)
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Differential Revision: https://reviews.bitcoinabc.org/D13551