I've got my phone locked but it's in an easy way, more because if I have a seizure and try to get in my phone after the seizure I'm still not with it so it's a little easier for me to get into. But that being said I've still tried to get into my phone during seizure or straight after & locked myself out.
In regard to your question about emergency info, I have a ICE app on my phone with my details with my conditions meds & my parents contact numbers. I have it set to appear on my screen if its locked. I also have a medic alert bracelet which has a card with my info on it and I have the card in the pocket of my mobile phone case.