Trouble with this is that the widget factory in our model is not the only one with a bulging warehouse. There's a widget factory in each country, and each must complete for access and control of these overseas markets. War is a great emptier of widget warehouses. If there is a shooting war, the widgets are used up whilst the workers are distracted by the hostilities and do not focus on the boss as the source of their poverty. However, as with all solutions created in this universe, the solution itself becomes a new problem.
Overseas markets are limited and eventually they are adsorbing all the widgets that can be produced.
And overseas markets eventually industrialize themselves, and begin trying to export their own widgets back to the original capitalist countries, greatly increasing the competition. As long as limited war or preparations for war continues, war fulfills its economic function. I should mention that whilst there is a war, while the solutions are operative, there still may be a business cycle, but it's severity has been strongly ameloriated. The distinction between an ameloratied cycle and a full-blown one is the difference between a recession and a depression. The first world-wide depression began about 1870.