Social insurance and the completion of the internal market