Pass self to lock methods.

This avoids frequent recomputation of
Thread::Current/pthread_getspecific.

Also add a futex based reader/writer mutex that is disabled.

Change-Id: I118fdb99ef1d1c4bfda6446ba3a0d8b6ab31eaee
diff --git a/src/runtime_support.h b/src/runtime_support.h
index b4a23ff..eff50b3 100644
--- a/src/runtime_support.h
+++ b/src/runtime_support.h
@@ -20,7 +20,9 @@
 #include "class_linker.h"
 #include "common_throws.h"
 #include "dex_file.h"
+#include "indirect_reference_table.h"
 #include "invoke_type.h"
+#include "jni_internal.h"
 #include "object.h"
 #include "object_utils.h"
 #include "thread.h"