Slow magnetic fluctuations and superconductivity in fluorine-doped NdFeAsO