Adding query parameters but still exception with Hibernate locking