USB: core: Add type-specific length check of BOS descriptors