Kinetics and thermodynamics of gas diffusion in a NiFe hydrogenase