Fix gitlab-ctl replicate-geo-database when run in a Docker container
sudo doesn't work in Docker containers. The replicate-geo-database command is run as root, so we should have permission to change ownership of files afterward.
Closes #2446 (closed)