http://news.cnet.com/8301-17938_105-57565730-1/unauthorized-unlocking-of-smartphones-becomes-illegal-saturday/ I think this currently only applies to the US. In many countries it's actually illegal for carriers to lock phones, go figure.
As well it's not Britain I wouldn't even buy a locked phone, they even sell various simcards for 99p in newsagents here.