Lubing locks....

If graphite isn't the answer the lock needs to be repaired
To those that think lubricant is a good idea, I have a question for you. With all the advances in metallurgy over the years why is most of a lock brass? Sure there is the occasional spring,C-clip, or anti-drill part that is steel: But, even the high-end locks use brass!! Why?
Brass on Brass is very low friction. It doesn't really need lubrication. Once in a while graphite does help but adding anything oil based to a lock is just a temporary fix that will hold dust and debris in the lock. I know some guys think silicone doesn't count, but over time it will affect the lock negatively.
Unless the brass is in contact with dissimilar metals, galvanic corrosion isn't a problem. When it does corrode, it pits. But, because it's malleable the pitting (the zinc being removed) can be worked back to smooth. It's kinda self-repairing.
If you can fix a sticky lock with lubricant, it's likely because someone before you put lubricant in the lock Subsequent applications of Boeshield or wd-40 are merely acting as a solvent to help dissolve the old lube and dust mixture. They only work short term and eventually the lock needs to be cleaned properly.