fix some bugs in setxid and update setrlimit to use __synccall
[musl] / src / thread / syscall_cp.c