Jit: Start the Jit when framework signals on first screen draw

Cleanup of delayed start - introduce dvmRelativeCondWait in Sync.c.
Additionally, support for deadman timer to start Jit when no screen draws
happen, and to start immediately when running stand-alone.

Fixed bug in assert variant of libdvm - recent MONITOR change had neglected
to add a new type of exit to the exit stats.
diff --git a/vm/Globals.h b/vm/Globals.h
index fde3c09..ecc37be 100644
--- a/vm/Globals.h
+++ b/vm/Globals.h
@@ -656,6 +656,7 @@
     kInlineCacheMiss = 0,
     kCallsiteInterpreted,
     kSwitchOverflow,
+    kHeavyweightMonitor,
     kNoChainExitLast,
 } NoChainExits;
 
@@ -788,6 +789,9 @@
     volatile bool selfVerificationSpin;
 #endif
 
+    /* Framework or stand-alone? */
+    bool runningInAndroidFramework;
+
     /* Place arrays at the end to ease the display in gdb sessions */
 
     /* Work order queue for compilations */