Enhanced spin-polarization lifetimes in a two-dimensional electron gas in a gate-controlled GaAs quantum well