Add an indicator for stream is closed.

When the stream is closed, the HAL may not reply to any command via FMQ.
In that case, the framework should not send command if the stream is
closed.

Bug: 444055834
Test: crash OboeTester, check dumpsys audioflinger, aaudio
Flag: EXEMPT BUGFIX
Cherrypick-From: https://googleplex-android-review.googlesource.com/q/commit:9acf0c9e072038be1429c94109fa9a549012360f
Merged-In: I01250febf52b038b633e70a6afc0607cd329f61c
Change-Id: I01250febf52b038b633e70a6afc0607cd329f61c
2 files changed