Handle part files correctly

When trying to find the owner and real path for a given file we need to take part files into account because the file cache doesn't know them. This should solve issue #4533