(#3419) Fix OS X Ruby supplementary group handling
Catch Errno::EINVAL as some operating systems (OS X in particular) can
cause troubles when using Process#groups= to change the user/process
list of supplementary groups membership.
Test coverage has been added to check for regressions.
Add a test for the expected failure