Stalin exemplified the personality cult--it wasn't so much about the state as it was about him personally. And while personality cults and State worship are all too common in Socialist systems, they are not a defining criterion--a system need not display the premise of the State taking the place of God to be defined as Socialist.
Not all Socialist systems put the state on the throne as God, for example, religious (Christian, Islamic) socialisms don't, and personality cults that develop don't put the State as a god, but the dictator. The dictator is the head of state, but he is not necessarily the complete embodiment of the State (e.g. Saddam, Stalin).
Therefore, it cannot be said that Socialism is a spirit or a God.