RV door locks don't have to be much of a lock/latch if the RV is a Trailer. If it's a MoHo, then it can be occupied in motion and higher standards called FMVSS apply. If it's an FMVSS lock, harder to remove when it won't unlock, than one in a Trailer.
A brand called Trimark had a lot of failures. If you'll search, you may find a way to get the old out and replace with new. If you can't find a clear way to proceed and get the broken one out without damaging the door/door area, better to hire a professional. $100 to remove a $100 lock is better than $1000 to fix a buggered up door.
A mobile RV tech can probably help, too. Otherwise, when I need a locksmith, I try to drive to their shop (if any still have one!) and avoid the "service call" fee.
Can you post a picture of this Lock?
If God's Your Co-Pilot Move Over, jd
2003 Jayco Escapade 31A on 2002 Ford E450 V10 4R100 218" WB