[PATCH 5.3 310/344] Btrfs: fix use-after-free when using the tree modification log