build: fix gcov failure on ubuntu 24.04

Type: make

Change-Id: Ieee6562de4b9f68d701c27a3c3018431b28eb3b0
Signed-off-by: Dave Wallace <dwallacelf@gmail.com>
diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt
index d5c7fd1..1fbb624 100644
--- a/src/CMakeLists.txt
+++ b/src/CMakeLists.txt
@@ -164,7 +164,7 @@
   add_compile_options(-O0)
   add_compile_definitions(__COVERITY__)
 elseif (${CMAKE_BUILD_TYPE_LC} MATCHES "gcov")
-  add_compile_options(-O0 -fprofile-arcs -ftest-coverage)
+  add_compile_options(-O0 -fprofile-arcs -ftest-coverage -fprofile-update=prefer-atomic)
   add_compile_definitions(CLIB_DEBUG CLIB_GCOV)
   link_libraries(gcov)
 endif()