goid relies on assembly implementation of getg. That assembly implementation needs to be written for every supported architecture. The source tree has it for intel and arm, 32 and 64 bit. There is also a stub file for wasm (WebAssembly) but no code there.
Find out how to write getg for WebAssembly and add it so that multiple inference threads work in the browser, too.