Our door lock broke while we were in North Carolina, and we were locked in!!
Called out the window to a neighbor, but couldn't open it from in or out. The knob on the latch which pulls it open had broken off. I was able to remove the screws from the inside, and then used a pliers to pull the latch back enough to open the door. I just removed the latch, then used just the deadlock to hold it until we got a replacement. About $120 for the replacement lock, and a couple of hours labor (mine) to fix it. We were lucky in that the RV repair shop had two in stock!! He had to replace one the week before, and order a couple to have on hand.
Just remember that most locks can be removed from the inside, if you have the tools inside with you. If not, get a neighbor to help hand you tools through the window.