Add sync to write the backup file to the filesystem

Bug: 27354612
Change-Id: I5a7751b6f08831d43647391774501f211336e9eb
diff --git a/btif/src/btif_config.cc b/btif/src/btif_config.cc
index 2703372..722d6a6 100644
--- a/btif/src/btif_config.cc
+++ b/btif/src/btif_config.cc
@@ -480,6 +480,7 @@
 
   pthread_mutex_lock(&lock);
   rename(CONFIG_FILE_PATH, CONFIG_BACKUP_PATH);
+  sync();
   config_t *config_paired = config_new_clone(config);
   btif_config_remove_unpaired(config_paired);
   config_save(config_paired, CONFIG_FILE_PATH);