Merge branch 'issue/5254' into 'master'

Cronjob locking not working properly

Closes #5254

See merge request !876
1 job for master in 3 minutes and 19 seconds (queued for 3 seconds)
Status Job ID Name Coverage
  Syntax
passed #686
syntax:lint

00:03:19