The locations of X-ray sources in globular clusters