Merge branch 'syncrepo_check' into 'master'

Lock before deleting files

See merge request !307
2 jobs for master in 51 seconds (queued for 2 seconds)