Only set launch sandbox state variable once to improve performance.
<rdar://problem/110660033>
Pull request: https://github.com/WebKit/WebKit/pull/14881
Committed 265088@main (b4b2f8098f3d): <https://commits.webkit.org/265088@main> Reviewed commits have been landed. Closing PR #14881 and removing active labels.