A history of the gamma-ray burst flux at the Earth from Galactic globular clusters