[SPI-1873] Pipelines: try locking a script
See merge request !699 (merged)
(cherry picked from commit a1934082)
c343bca9 Pipelines: try locking a script c0801deb Jenkinsfile-experimental: Revert the locking test