TB patient jailed for not taking meds