check return value of setresuid(). Fixes ROOT-5816.