Completely integrable class of mechanical systems connected with Korteweg-de Vries and multicomponent Schrödinger equations