Don't CHECK for has_malloc_hook under msan/asan

Change-Id: I3b229b528de5498dc93fed12ad84eca74dd8839a
Signed-off-by: James Kuszmaul <james.kuszmaul@bluerivertech.com>
diff --git a/aos/realtime.cc b/aos/realtime.cc
index 5516333..ea54d9e 100644
--- a/aos/realtime.cc
+++ b/aos/realtime.cc
@@ -231,9 +231,11 @@
     // For some applications (generally tools built for the host in Bazel), we
     // don't have malloc hooks available, but we also don't go realtime.  Delay
     // complaining in that case until we try to go RT and it matters.
+#if !__has_feature(address_sanitizer) && !__has_feature(memory_sanitizer)
     CHECK(has_malloc_hook)
         << ": Failed to register required malloc hooks before going realtime.  "
            "Disable --die_on_malloc to continue.";
+#endif
   }
   const bool prior = is_realtime;
   is_realtime = realtime;