HHH-9067 Make HibernatePersistenceProvider easier to extend

The ultimate goal is to be able to instantiate easily an HibernatePersistenceProvider
with a Spring managed interceptor.
(cherry picked from commit 1c0841180d2244894cf55ad98317d9970ce53834)