As far as I know, all of them - USSR, Cuba, China, Vietnam, NK etc, implement gun control. Why should their governments do that? The people of these states genuinely support(ed) socialism, if they are/were all armed they can protect socialism far better than the 1% of the population that makes up the military.
To be fair the context of that marx quote is specifically about the people during a revolution forming organised militia.
The quote gets used completely out of context a lot.
People should actually read the whole thing. Relevant excerpt:
He was essentially laying out what to do in each step. With step 2 being the very immediate building up of arms prior to revolution. Arming the people and building the arms required for revolution. This is quite different to "the people should be armed at all times" and it's a little inaccurate that the quote gets used that way.