There's absolutely no dependency in Mattermost on GitLab. It can be used through the GitLab omnibus install, but there's no requirement for this.
Here's the installation guide for a Mattermost-only deployment - as you can see there's no mention of Ruby or Go - so your irritations should be gone!