omx_core: fix heap corruption when unregistering component

Change-Id: Ie5c20e48f376054b1fe468274128e4c19c2ef3d1
Merge remote-tracking branch 'cm/cm-11.0' into HEAD