Most of the time, contract law is sufficient to handle such agreements between service providers and their customers. Why should unlocking phones be given special treatment under the law? Early termination fees are very enforceable and generally seem to be sufficient to stop people from breaking their contracts.