Wait for file system sync in tests