I don’t know about having to go to socialism, but we are going to have to figure out a way to operate with most folks not having jobs, and having lots of stuff for acquisition in spite of nobody having jobs.
The hope is that increased human demand that goes along with it will create separate classes of jobs. And to be sure, some economists think so: http://economistsview.typepad.com/economistsview/2015/02/robots-arent-about-to-take-your-job.html
Now clearly, if AI gets as advanced as some of the alarmists say it will, then no economic system has a chance of working and loss of jobs will be the very least of our issues.