Time-scale and state dependence of the carbon-cycle feedback to climate