Apply this patch to pam_mount-0.9.22 to get the possibility to mount with the correct uid AND gid. Take a look at the pam_mount.conf.gidpatch file (at the bottom) how to use the patch and the new wildcard % for gid-replacement.