By you assertion that 'people had to wait 30 years to get an apartment,' you conflate two *very* different things: having a place to live (which was established as a human right in the USSR), and the issue of rationing housing in densely-populated urban areas
Socialism in the USSR proceeded by addressing the pressing needs of the populace, most of which was desperately poor and on the edge of subsistence in both urban and rural areas
This was quite successful in the sense that life expectancy nearly doubled, infant mortality was reduced to about 1/10th is previous level -- in fact, by any measure of well-being, we would reckon Soviet socialism a smashing success https://journals.sagepub.com/doi/10.2190/AD12-7RYT-XVAR-3R2U