fix some bugs in setxid and update setrlimit to use __synccall