It's hard to imagine a socialist solution working in the context of the United States of America, though. The more viable solution in this context is allowing the free market to build abundant housing.
You need some sort of scarcity to increase profits. Building plenty of affordable housing works against that.