Cosmological constraints from the X-ray gas mass fraction in relaxed lensing clusters observed with Chandra