Try to solve ReentrantLock deadlock by interrupting threads when using lock()