omx_core: fix heap corruption when unregistering component

Change-Id: Ie5c20e48f376054b1fe468274128e4c19c2ef3d1
Merge branch 'cm-11.0' of https://github.com/CyanogenMod/android_hardware_samsung into cm-11.0