All JNI callbacks must be on the JNI thread, otherwise this could
impact the threads' operation.
Bug: 111277984
Test: A2DP streaming
Change-Id: I94fa4500aea62a574c80749e904434e46eb4e942
(cherry picked from commit 34bd633f)
(cherry picked from commit 40e99810)