keep error checking style with setgroups logic

The code here all checks != 0, so make the new code do the same.

Bug: None
Test: make check still passes
Change-Id: I94c6032431eea8bc0b017b8d3e1d4f6a6e98506e
1 file changed