Add (default off) support for dying on malloc in RT code

Our malloc is not realtime.  We shouldn't be using it in RT code.  To
enforce this, add a hook into tcmalloc to LOG_RAW(FATAL) whenever an
application tries to allocate memory inside code running at the RT
priority level.

We have code in our drivetrain code which is allocating memory still
when realtime.  That prevents us from enabling it yet.

Change-Id: I7679bb11fc9ef0cc676c77f5ef7b041427e1f32a
diff --git a/aos/realtime.h b/aos/realtime.h
index 52db4a8..bb5ea84 100644
--- a/aos/realtime.h
+++ b/aos/realtime.h
@@ -36,6 +36,9 @@
 
 void ExpandStackSize();
 
+// Registers our hooks which crash on RT malloc.
+void RegisterMallocHook();
+
 // CHECKs that we are (or are not) running on the RT scheduler.  Useful for
 // enforcing that operations which are or are not bounded shouldn't be run. This
 // works both in simulation and when running against the real target.