JPA locking cleanup