The org.hibernate.jpa.test.lock.LockTest requires the following changes:
lock timeouts should be drastically reduced
proper Session/Transaction management should be done so we don't leak resources
fix intermittent issues spotted on MariaDB