stackCheckInit

Startup routine to initialize the stack.

Must be called in the order specified on https://github.com/emscripten-core/emscripten/blob/main/system/lib/README.md