btrfs: move extent-tree helpers into their own header file