JPA locking is working