Btrfs: avoid BUG when dropping root and reference in same transaction