N-linked carbohydrates act as lumenal maturation and quality control protein tags