Fix possible cross FS rename for stat.