linux: add support for SO_PEERGROUPS
The su(8) and sudo(8) from Ubuntu Bionic use it.
Sponsored By: The FreeBSD Foundation
Differential Revision: https://reviews.freebsd.org/D28165
(cherry picked from commit cd84c82c6ad73c804b828bad9caec176e41ab79d)