How to Explicitly Sync When Appending to a File