So it may be possible from my testing of the HTC one m9, but it's tricky with the z3. So since we can't flash any ftf file at all to the d6616, our only other option would be to root the device via kingroot, since its the only current option to root the d6616(do read the notice in the thread), do a rom backup and then proceed to flash a generic stock rom from an international device without T-Mobile customization, since what's restricting us to the T-Mobile unlock app is the csc, we can just edit that, but flashing a rom is a lot less messy. (I'm not sure if generic roms flashed via recovery work, since yet to root mine and I usually don't keep stock backups alongside the factor that ftf files are useless.), but as I was saying, once the generic rom boots, it should ask for a sim unlock code.
Note: the code may or may not work based on what mods the rom developer has implemented, since on the m9 it only worked with arhd which is a super basic rom, while it wouldn't work with Leedroid.