tests: Fix test_syscall_setreuid to work with privilege checks