Use gettid directly in frameworks JNI.

Bug: 17048545
Change-Id: I1cd45d85368c799b75f76e778722979cbbb68ed2
Merge "Use gettid directly in frameworks JNI." into du44