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