Capillary Coexistence and Criticality in Mesopores: Modification of the Kelvin Theory