scripts: add MACHO dylib checking to symbol-check.py
Summary:
This is a backport of core#17863
Depends on D13578
Test Plan: gitian build
Reviewers: #bitcoin_abc, Fabien
Reviewed By: #bitcoin_abc, Fabien
Subscribers: Fabien
Differential Revision: https://reviews.bitcoinabc.org/D13581