Fixed Gradle Wrapper, JavaDocs and JUnit test

yea that's true

tryLock() and gotLock() should return the same but gotLock() should not acquire a new lock.