Added support for setting a group for SysV Shared Memory

I have added support for setting a valid group when attaching to the shared memory.

This allows you to create SHM and share it with users in a group which is not your default GID.

This is something that is missing in PHP since the addition of SysV SHM.