Merge "Fix threading issues in AudioRecord JNI"