Audio HAL: Fix UAF if the effect is removed after close am: 532240f4eb
am: 78836599d2

Change-Id: Iadf728845159acc27d7085ed0018eccfc7f3eac7