Lock? As in locking your bike up to a rack or whatever? Because that really has no standing on the type of bike, and your question would be better asked in a different sub forum.
And if you can't afford a locksmith, the simple answer is a new lock. Plain and simple.