Cosmic-Ray Production of Light Elements in the Early Galaxy