hal: Fixes in audio patch removal and device utilities

Fix use-after-free of patch_info in release_audio_patch.
Correct is_single_device_type_equal API in device_utils.

Change-Id: I307bdb5fc45aba82a62f7a49f1724de3873fed89
2 files changed