VPP-319: Fix handling of ERANGE from getgrnam_r