Convergence of the Ricci flow for metrics with indefinite Ricci curvature