[PATCH 4.14 027/146] btrfs: validate type when reading a chunk