implement File._fix_mode and File._fix_owner