Add test for blocking on ordinary Java lock