remove inexistent files from history (unless they're on a network or removable drive or there are non-trivial preferences for them in which case they're just kinda hidden) (also allow to use ThreadBase without refcounting)