Generation and maintenance of protective IgM responses during intracellular bacterial infection