btrfs: validate type when reading a chunk