HHH-9419: Remove after get with optimistic lock fails (PR into master)

See https://github.com/hibernate/hibernate-orm/pull/815