Localization of nonlocal cosmological models with quadratic potentials in the case of double roots