Hi.
Quick temporary work around is to remove the opening spring from the back of the filler cap cover. It's a little leaf spring fitted by the hinge. Don't loose it, and you can re-fit it when you fix the lock. This allows the cap to close flush with the car whilst the lock is broken, and you can just push it open when you need to fill up.