The "paperclip" that "Capitalism" seeks to maximize is money in exchange for goods and services that people want.
The robots aren't going to be built in the first place if they're not going to serve somebody, and if they no longer provide things that people want in exchange for money, their owners will turn them off or repurpose them.
"Capitalism" isn't the problem here; it might be that robots could be paperclip maximizers, but that's a danger regardless of whether you have Robot Capitalists or or Robot Communists or Robot ISIS or whatever.