it seems to me that if you give them a password to unlock the phone and when it unlocks it has been wiped that will cause problems whether it is the password that causes the wiping or not?
A non-citizen who arrives with a blank phone might be denied entry because it seems suspicious.