HHH-8541 - EntityManager#getLockMode should technically throw TransactionRequiredException if transaction is not active
HHH-8542 - javax.persistence.Query#setLockMode should throw ISE if not a SELECT JPQL or Criteria query