audiohal: Fix UAF of HAL devices in Stream objects am: 936279e1ff
am: 7eef664e02

Change-Id: Ibe5bc6a66fac34aac952c1f87f1fc1ca94a9a246