audio: Improve state change logging in DevicePortProxy

Make sure that when logging, `mState` is accessed under a lock.
Also, generalize `condWaitState` and log the state change.

Flag: EXEMPT refactoring
Bug: 411235064
Test: check logcat when software BT HAL is used
Change-Id: I4bbd6ba86ee23ac0d11059909b7d40e3b03ac9c3
1 file changed