What happened in the communist states is not what most communists wanted to happen, quite the opposite in fact. Most communists don't want a large oppressive state, they want socialism, they don't want anyone owning anything, they want freedom. It's not possible in reality because of human nature.
FOSS is more similar to what most communists want which is a lot of what you've described above: the freedom for something to be owned by the community, used and improved by everyone. Of course, it's senseless to apply concepts such as socialism to software which doesn't exist in the physical sense.