omx_core: fix heap corruption when unregistering component

Change-Id: I4b692eaea51458986c75aa8e5f05df0d0d2305fd