Fix race condition when writting the report.
diff --git a/fuzz.c b/fuzz.c
index 693ab8a..b2c7436 100644
--- a/fuzz.c
+++ b/fuzz.c
@@ -625,7 +625,10 @@
         }
     }
 
-    report_Report(hfuzz, fuzzer->report);
+    {
+        MX_SCOPED_LOCK(&hfuzz->report_mutex);
+        report_Report(hfuzz, fuzzer->report);
+    }
 
     if (state == _HF_STATE_DYNAMIC_PRE && ATOMIC_PRE_INC(hfuzz->doneFileIndex) >= hfuzz->fileCnt) {
         fuzz_setState(hfuzz, _HF_STATE_DYNAMIC_MAIN);