a straightforward implementation would introduce: * wasm_runtime_set_wasi_exit_code * wasm_runtime_get_wasi_exit_code and use the former in libc-wasi/uwasi and use the latter in iwasm and other embedders. if it sounds ok, i can submit an implementation.