change lockInterruptibly() implementation to throw java.lang.InterruptedException when interrupted. fixes #3969