More and more networks are offering unlocking solutions for the iPhone. e.g. O2 in the UK now unlock phones and I recently unlocked a French SFR handset after having it for one week (normally costs 100 to unlock in the first 6 months of ownership).
Networks are becoming increasingly kind in the face of losing custom.