public void setLocked(final boolean locked) {
        this.locked = locked;
    }
Allow the locked property of the traversal to be directly set by those who know what they are doing. Are you
sure you know what you're doing?
gremlin-core/src/main/java/org/apache/tinkerpop/gremlin/process/traversal/util/DefaultTraversal.java