Synchronized accessing audio flinger for crash monitor.

The audio flinger instance can be read and updated by two different
threads. There should be synchronization to protect it to avoid race
condition.

Bug: 389898837
Test: atest AAudioTests
Flag: EXEMPT bugfix
Change-Id: I8725934f22a66923f51a68ee32c1ffcc10ec3099
3 files changed