[FIXES JENKINS-23629] NPE with ReentrantLock
Merge pull request #94 from bkmeneguello/reentrant-lock

[FIXES JENKINS-23629] NPE with ReentrantLock