As the incidence of tuberculosis has waned, so has investment in new tests and treatments—and that may prove to be a mistake.