Removing unnecessary locking from h2 sql script