issue #19379: lock on maintenance
issue #19379: cleanup
Merge pull request #149 from shackbarth/19379

issue #19379: maintenance route can only be run once at a time