Merge "hal: fix the reference count for devices during speaker protection"