That would be an entertaining plot device in a spy movie: spy gets captured, finds that power fluctuations occasionally flip a bit in the memory of the security system, uses the light in his/her cell to flip all the bits corresponding to the door locks...