Immune lag is a major cost of prokaryotic adaptive immunity during viral outbreaks