Separating church from state is only a necessity so long as either institution exists, and for most cultures throughout history up until relatively recently neither institution did.
As such it's an issue for socialism that will be resolved with the development of the communist society.