src: avoid race condition in tracing code
json_trace_writer_
is protected by stream_mutex_
,
but one access to it was not guarded by a lock on said mutex.
Refs: https://github.com/nodejs/node/issues/25512
Checklist
-
make -j4 test
(UNIX), orvcbuild test
(Windows) passes -
commit message follows commit guidelines