in the Soviet Union it was problematic and bureacratic to get hold of a flat, or move to a better one.
It was not if you were an immigrant in the Baltics. They got them outside of normal queue - while local people had to live in communal apartments (2 or more families in one apartment) while waiting in queue for ~10 years or so.