There is some bad logic in Loader#instanceAlreadyLoaded handling upgrading lock modes when entities are already associated with PersistenceContext which are not versioned