There are tons of effective liquid lubricants, but WD-40 is not one of them, check the
article in Popular Mechanics. I would suggest getting a lubricant that you could use for other things on the bike and a local bike shop is likely to offer several products. Myself I'd use Boeshield T9 or LPS-3 for the purpose.