Manipulation of nonequilibrium spin dynamics of an ultracold gas in a moving optical lattice