Determination of the mass of globular cluster X-ray sources