In Hanafi usage, prohibited makhīṭ for a male pilgrim concerns clothes shaped and worn as garments fitted around body parts. It is not a ban on every piece of cloth that happens to have a stitch.
A repaired wrap does not become the same as a worn shirt merely because it contains stitching. The garment’s form and manner of wearing are relevant.