Make tracing compatible with sanitizers. (#6479)

Splitting this off from working on https://github.com/google/iree/issues/6404.

Sanitizers define these functions, so tracing needs to not define them (or wrap them somehow).
diff --git a/iree/base/tracing.cc b/iree/base/tracing.cc
index 917370d..870eabd 100644
--- a/iree/base/tracing.cc
+++ b/iree/base/tracing.cc
@@ -204,8 +204,10 @@
 }  // extern "C"
 #endif  // __cplusplus
 
-#if defined(__cplusplus) && \
-    (IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_ALLOCATION_TRACKING)
+#if defined(__cplusplus) &&                                               \
+    (IREE_TRACING_FEATURES & IREE_TRACING_FEATURE_ALLOCATION_TRACKING) && \
+    !IREE_SANITIZER_ADDRESS && !IREE_SANITIZER_MEMORY &&                  \
+    !IREE_SANITIZER_THREAD
 
 void* operator new(size_t count) noexcept {
   auto ptr = malloc(count);