ReentrantLock example