Look up the setupForeignThreadGc proc. [https://nim-lang.org/docs/system.html#setupForeignThreadGc.t%2C](https://nim-lang.org/docs/system.html#setupForeignThreadGc.t%2C)
This conversation also might help. [https://forum.nim-lang.org/t/3965](https://forum.nim-lang.org/t/3965)
