Torsion effects on a relativistic position-dependent mass system