[PATCH 4.14 167/185] Btrfs: fix use-after-free when using the tree modification log