`OgmEntityManagerFactory#addNamedQuery` delegates to `EntityManagerFactoryImpl#addNamedQuery` that calls `getLockOptions` throwing an exception.

I could think of two solutions:
1) set a default value;
2) copy the implementation from the `org.hibernate.internal.QueryImpl` class

I've decided for the second one but I'm open to suggestion.