[PATCH 6.1 454/772] btrfs: ref-verify: fix use-after-free after invalid ref action