Add synchronization after file operations