NH-3671 Add EnsureConnectionIsOpen to Connection Provider (not before NH5.0)

Note: Some dialects are doing SQL operations directly, and since they do not have a reference to the session or session factory, they cannot use this functionality.