This is similar to D116619, but now it handles invokes. The reason we
didn't handle invokes back then was we didn't support Wasm EH + Wasm
SjLj together, and the only case SjLj transformation will see invokes
is when we are using Wasm EH. (In Emscripten EH, they would have been
transformed to calls to invoke wrappers.)
But after D117610 we support Wasm EH + Wasm SjLj together and we can
nullify invokes to setjmp when there is no other longjmpable calls
within the function. Actually this is very unlikely to happen in
practice, because we treat destructors as longjmpable and also treat
__cxa_end_catch as longjmpable even if it is not.