The critical layer in pipe flow at high Reynolds number