Fix mediaserver crash issue

mDeviceCallback is not guarded by a lock, so it may be
cleared twice when another thread calls removeAudioDeviceCallback.

Solution: Guard mDeviceCallback with a lock.

Test: monkey test
Bug: 209707170
Change-Id: I1ff93d058b8f8ff7addb2eb1cd86a1c03ba80777
2 files changed