btrfs: do commit in sync_fs if there are pending changes