The power of a court to pass a sentence of borstal training under section 20 of the Criminal Justice (Scotland) Act 1949 shall not be exercised in the case of any person on whom such a sentence has previously been imposed and who has served any part thereof.