public void setLock(ReentrantLock lock) {
        this.lock = lock;
    }
Set the internal lock to this {@link LockWrapper}

@param lock the actual lock to be used
modules/siddhi-core/src/main/java/io/siddhi/core/util/lock/LockWrapper.java