make sure that [file stat] returns the right data, even for locked files.