pw: Ensure group membership is not duplicated
Fix the following problem:
- A nonexistent user, someuser, is added to somegroup in /etc/group.
- someuser is then created with membership in somegroup.
The entry for somegroup in /etc/group will then contain
somegroup:*:12345:someuser,someuser
With this fix, the entry will be
somegroup:*:12345:someuser
PR: 238995
Reviewed by: bapt, jrm
Sponsored by: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D41076
(cherry picked from commit 17839f45d86e79065a65ad3e2522dd69b29a652c)