HHH-8285 Moving jpa/internal/metamodel and jpa/graph from hem to core

To build a loadplan based on the entity graph, we need access the impl class of entity graph within the hibernate-core module, this PR is only about this