Fixes a crash on detach on aarchxx by setting xsp to the proper value for SYS_rt_sigreturn to find the signal frame for resuming app state.
Tested manually on aarch64 the api.detach test in gdb. Unfortunately there are further bugs, so the test cannot be enabled yet.
Issue: #1578