Rapid evolution of microbe-mediated protection against pathogens in a worm host