Btrfs: improve error handling for btrfs_insert_dir_item callers