[PATCH 5.15 381/565] btrfs: ref-verify: fix use-after-free after invalid ref action