When Stalin died in 1953 Beria the Gulag chief has sent an official request to reduce the size of the workforce and cancel major projects because the work was inefficient, they spent more with forced labor than with normal workforce.
Adam Smith knew that, and there is additional work for example Acemoglu & Wolitzky (2009 / 2011) — The Economics of Labor Coercion
When is that going to happen? We've been waiting quite some time now.
Considering the Stalin example you gave, that's attempted Marxist communism, not just slavery. The slavery is incidental in that regard. If you don't know what labor needs doing it doesn't matter how many slaves you have. That's always the problem with large scale communism. You can't possibly manage all the variables.
Slavery worked just fine in the American South, it was the North that finally put a stop to it because they were starving. Combining capitalism with slavery, like China has been doing, works just fine economically for the nation itself, without regard to morality. It's other nations that get screwed.
And yes, it's also immoral and they need to stop. But it's profitable. I don't think it's going away on its own.
I think you're giving too much weight to an economic theory that doesn't withstand history, or modern factuality.