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