[PATCH 4.4 071/137] Btrfs: fix removal logic of the tree mod log that leads to use-after-free issues