Call lock update callback only if the lock status changed.
exclude jline dependency in pom.