HSQLDB LOC fixed for performance