I heard a tale a couple of weeks ago of a captain and F/O who inadvertently locked themselves out of the cockpit of a Boeing on the ground at a quite famous northern airfield.
It seems that repeated attempts at resetting the system by depowering the aircraft did not work and so it was that it didn't move again for 2 days.
How very embarrassing.