NEXUS-5661: Fixing the UT

Now that the local storage is counted as prefixes source,
the nuking of local storage happened at bad place, after
prefix file was rebuilt.

Moved local storage nuking to proper place, to
happen before prefix file is rebuilt.