Mogens Lykketoft, Socialdemokraterne