Unlocking has never been illegal in the UK. Unlocking a phone may be a breach of your network contract, but that's never been enforced and is almost certainly unenforcable. It's illegal to unblock a handset, but that's a different matter - IMEI blocking is an anti-theft measure that stops a phone from being used on any network.