Work around AIX forcing the primary group to be part of secondaries.

Fixes test case 17_users/unsafe/promise_outcomes.cf.