Problem on gitlab-runner: cannot lock ref [...] Another git process seems to be running in this repository
The easiest solution for me was to execute 

docker container prune

on the runner machine. The command removes all stopped docker containers and the .lock files therein. Running a pipeline from gitlab.com then starts a new container. (Note that all caches will be lost).