Fix sandbox violations with sandbox version 2 on macOS.
<rdar://problem/101440426>
Pull request: https://github.com/WebKit/WebKit/pull/5648
Committed 255851@main (75359092e7fd): <https://commits.webkit.org/255851@main> Reviewed commits have been landed. Closing PR #5648 and removing active labels.