MediaControllerCompat: Synchronize the list of pending callbacks

The list of pending callbacks can be modified from different thread, so
it needs to be synchronized.

Bug: 35368230
Test: ./gradlew support-media-compat:connectedCheck
Change-Id: I76e49f20cc856188d2870c28d30bda3b7eeb5852
1 file changed