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

Change-Id: I3a6ce3da68a1be76858f936d437860503b93c03b