Btrfs: fix tree corruption after multi-thread snapshots and inode_cache flush