Ensure that gc() gets called in worker_thread.js.