You are unfamiliar with Supreme Court rulings on this subject. In United States v. Montoya de Hernandez, 473 U.S. 531 (1985), the court ruled
that routine searches of people and their effects entering the country require neither reasonable suspicion, probable cause, nor a warrant.
18 USC 2232 makes it a crime to impair the governments authority to take possession of property.
18 USC 1512 makes it a crime to destroy or conceal records/evidence to prevent their use in official proceedings.
18 USC 1001 makes it a crime to lie to federal law enforcement officers, which CBP is.
If he told CBP that this was his genuine unlock code then heâ(TM)s got a problem.
So to win this case he will have to dodge a controlling Supreme Court precedent and potentially 3 federal statutes.