[CMAKE] Fix getentropy detection on OSX
Summary:
OSX needs both unistd.h and sys/random.h in order to define
getentropy().
Test Plan:
On OSX:
cmake -GNinja ..
Check the first getentropy (only unistd.h) fails, and the second one
(both unistd.h and sys/random.h) succeeds.
Run the OSX gitian build.
Reviewers: #bitcoin_abc, deadalnix, jasonbcox
Reviewed By: #bitcoin_abc, deadalnix, jasonbcox
Differential Revision: https://reviews.bitcoinabc.org/D5007