A New Constraint on the Escape Fraction in Distant Galaxies Using γ-Ray Burst Afterglow Spectroscopy