Fixes a race in the test where the synchall can catch the main thread before it returns from calling create_thread(), in which case the app's code to restore the callee-saved stolen register overwrites the client's restored value.
Tested on ARM and by running 2000x on AArch64.
Fixes #4671 (closed)