audio HAL - fix UAFs am: 7283cbe8cb

Original change: https://googleplex-android-review.googlesource.com/c/platform/hardware/interfaces/+/14212414

Change-Id: I975f17cc4c76755b4da89f7782dab18f2e0f36b4