change lockInterruptibly() implementation to throw java.lang.InterruptedException when interrupted. fixes #3969
Merge pull request #3974 from eminn/fix/maint/3969

[backport] change lockInterruptibly() implementation to throw java.lang.Interrupted...