ensure tlfs are synced before renaming them to their destination

I'd keep the 'open flags' & permission mask explicit as arguments.