[PATCH 5.2 283/313] Btrfs: fix use-after-free when using the tree modification log