[JENKINS-15820] Avoid deadlocks by using RentrantLock#tryLock() instead of synchronized
Merge pull request #72 from kei-yamazaki/avoid-deadlock

[JENKINS-15820] Avoid deadlocks by using RentrantLock#tryLock() instead of synchronized