get process group with FreeBSD getgroups syscall