I think when people say that Jesus was a socialist, they are actually talking about Social Democracy. As in the Nordic Model. Socialism has many different flavors and definitions. Jesus certainly would be closer to many of those than any other political or social party. His philosophy is contrary to capitalism.