I used to work for T-mobile, And there is a loop-hole available to get the unlock code..
What you do is: Call Customer Care and explain that you will be traveling internationally and want to use an international SIM in your current Phone (Despite T-mobile's "Unlimited...