Reset DirectoryLinksProvider before pref cleanup