We had a similar issue with our XLII bays and door locking without causing them to and it turned out to be our keypad entry system. Apparently, it shorted in such a way imitating the keypad lock sequence (7/9 or 8/9???) After the bus locked, the keypad would lose power whenever we hit the number the shorted (our case # 9) and not turn on until we recycled power. We changed the keypad and have not had an issue.

We too were locked out and used a hanger through the driver side window to pull the door lock knob. Sorry, its not as exotic as disengaging batteries or killing air.