Critical slowing down in dynamical systems driven by nonstationary correlated noise