[PATCH 6.12 009/146] btrfs: ref-verify: fix use-after-free after invalid ref action