AVRCP: Add lock in JNI to fix race conditions

Add lock for callback methods to avoid the null
errors in JNI due to cleanup and Native calls
race condition.

CRs-Fixed: 2437481
Change-Id: I0dfea44aff4cbc1ebc6235c80463101fc700322a
1 file changed