Using resource group locks from a pipeline