Add more Thread to runtime support llvm.

Change-Id: I0ee7c841f7b287126fa1ba8db5983a9fa2a1f04f
diff --git a/src/compiler_llvm/jni_compiler.cc b/src/compiler_llvm/jni_compiler.cc
index 99f2d21..c1152ab 100644
--- a/src/compiler_llvm/jni_compiler.cc
+++ b/src/compiler_llvm/jni_compiler.cc
@@ -200,7 +200,9 @@
   // Acquire lock for synchronized methods.
   if (is_synchronized) {
     // Acquire lock
-    irb_.CreateCall(irb_.GetRuntime(LockObject), this_object_or_class_object);
+    irb_.CreateCall2(irb_.GetRuntime(LockObject),
+                     this_object_or_class_object,
+                     thread_object_addr);
 
     // Check exception pending
     llvm::Value* exception_pending = irb_.CreateCall(irb_.GetRuntime(IsExceptionPending));
@@ -251,7 +253,9 @@
 
   // Release lock for synchronized methods.
   if (is_synchronized) {
-    irb_.CreateCall(irb_.GetRuntime(UnlockObject), this_object_or_class_object);
+    irb_.CreateCall2(irb_.GetRuntime(UnlockObject),
+                     this_object_or_class_object,
+                     thread_object_addr);
   }
 
   // Set thread state to kRunnable