src: fix race condition in ~NodeTraceBuffer
#25896
+33
−17
Closed