The island nation kept Covid cases low, and its resorts open, for much of the pandemic. But a recent surge exposed its overreliance on expatriate health workers.