I have never experienced a simple lock to get stuck, but there are panic buttons inside the toilets as well.
"I don't think many people realise what it takes to build toilet in trains in a place like the UK where the disabled associations and protections are really strong."
And I don't think this is a bad thing.