libc: add setreuid for porting CRuby
libc: add setregid for porting CRuby