On any translation, and in particular on detach, we translate from inside an rseq region to the abort handler. This is necessary to avoid problems with a cpu migration earlier in the region while running the instrumented version.
Augments the api.rseq test with a thread that sits in a loop in an rseq region to test translation on detach: without the translation, it loops forever.
Issue: #2350 (closed)