Fixing Hibernate concurrency problem (or I hope so!)