[PATCH 6.6 604/676] btrfs: ref-verify: fix use-after-free after invalid ref action