Socialism doesn't have to have anything to do with government. It's just an economic system where the means of production are controlled by the people collectively instead of privately owned businesses.
Not to be a nitpicker, but technically, that is communism, not socialism. Socialism is government controlling the means of production and distribution. Communism is the people collectively doing so without government.
But, I have argued that people are incapable of living in a stateless society and collectively controlling the means of production without having familial or other close ties.
Thus, Marx was a ******* idiot when he said that socialism leads to communism. It is, in fact, the exact opposite. People will throw off a government and become communists, then not be able to handle it, so they will place the means of production in the hands of a government.
.