Effect of treatment adherence on the association between sex and unfavourable treatment outcomes among tuberculosis patients in Puducherry, India: a mediation analysis.