Address thread safety issue in log forwarding.
<rdar://problem/123748756>
Pull request: https://github.com/WebKit/WebKit/pull/25356
Committed 275573@main (228eebbe8b43): <https://commits.webkit.org/275573@main> Reviewed commits have been landed. Closing PR #25356 and removing active labels.