In what ways is North Korea socialist? In practice it appears more a hereditary autocracy with an elite class and everyone else barely surviving on the scraps.
German Nazis were socialist in name only, to appeal to the working class.
In exactly the same way as the German Nazis were socialist.
Just as a note on a historical curiosity, the early NSDAP had a left wing that never seemed to be very important, and they got rid of the corresponding intellectuals (Strasser brothers and friends) even before getting into power, and the corresponding brutes (SA) afterwards.