omx_core: fix heap corruption when unregistering component

Change-Id: I961e02c63c9873f3e4ba2f3231d2dc85264ed3c8