Allow barriers to be used in build stages.
Use case is we want to build multiple parts of an application in parallel and use a barrier to wait for all builds to finish before we then publish them. We don't want to publish as soon as built because a subsequent deployment pipeline is triggered on new artefact. The pipeline needs all the parts to work properly.