My current apartment has a "smart lock" system for entry into the building. The system becomes unresponsive with no electricity, which means you're locked out.
But you can kick open the door anyways, so at least that's an alternative to being locked out.