Males as somatic investment in a parthenogenetic nematode