Long-term stability of cortical population dynamics underlying consistent behavior