overhaul __synccall and fix AS-safety and other issues in set*id
[musl] / src / thread / syscall_cp.c