net/gitlab-agent: fix build as none-root user
(cherry picked from commit 70088cbc8dcbaaee4ddd628be935c892c421efba)