core: fix MessageChannel polyfill for setImmediate to prevent memory leaks