libaudiohal@aidl: Release implicit patch immediately on stream close

Opening a stream creates an "implicit" patch which is not handled
by the APM. If it were handled, the APM would release it together
with closing the stream. This change ensures that the same behavior
is replicated for "implicit" patches.

Flag: EXEMPT BUGFIX
Bug: 441321675
Test: atest CoreAudioHalAidlTest
Test: atest CtsMediaAudioTestCases
Change-Id: I99c154c4af70eb939a58c1c9731d29f5093e7a97
7 files changed