add `.refreshFlags()` to path/dir/file objects

This will trigger the path refresh callbacks without refreshing the
path's from disk (which takes ages)