btrfs: move dir-item prototypes into dir-item.h