The app store is a feature, not a bug. Or maybe I and Apple are wrong, but why should it be illegal to make a product the way you think is best? If Apple's doing it wrong, someone else can outcompete them.
Apple thinks a free-for-all app store would make the product worse. Smart people take both sides of the issue. Why should the courts get involved?
As for locking, yeah it sucks. Presumably it's AT&T's idea since it doesn't benefit Apple. But anyway, if you don't like it, don't buy it. You knew what you were signing up for. It's not like Apple has a monopoly on cell phones. Again I don't see any place in this for the legal system.