Fix deadlock caused by wrong locking order

The correct order to lock is mSettingsLock -> VolumeStreamState.class.
In some cases this order was broken which lead to some deadlocks. Add
quick fix. Might still need to investigate whether we need both locks,
for details see b/287066735

Test: atest AudioManagerTest
Bug: 283969676
Bug: 283436164
Change-Id: I27afb8da18511291f8786833bf55250097a8e705
Merged-In: Id9c9fe4bd78d23dff92bf3a32c6f16d8e7b96720
1 file changed