omx_core: fix heap corruption when unregistering component

Change-Id: Ie5c20e48f376054b1fe468274128e4c19c2ef3d1