There's some interesting case law around locked things. One train of thought is that the govt can force you to give the key to a safe, but can't force you to give the combination to a safe.
The Apple extension would be that the govt can force unlocking by Apple (since they have a key) but not by you. All the more you reason to make it technically impossible ...