codec2 hal: use SharedRefBase::ref() instead of shared_from_this

Bug: 251850069
Test: adb shell dumpsys android.hardware.media.c2.IComponentStore/software
Change-Id: Ide7f5b8121b9f6536531b86733862bdcba795437
4 files changed