Support for GMP on non-main thread in parent process.