In such scenario you should be able to have a secondary password. Once you type it in, your phone unlocks but is also getting flagged (should look exactly like normal unlock). I know it would be scarry thing when you're at gunpoint..
The whole experience is just too real for me. Fuck up your password = death. I'd rather just have my thumbprint or something I can't screw up unlock it easily.