Btrfs: add a type field for the transaction handle