Honey found in the Tomb of Pharoah Tutankhamen who died around 950BC was still edible. I do not know if WD40 will lastquite that long but it should last for decades.
Once, for a while, I worked painting Retirement Villages, Hostels and Nursing homes. One of them had a 20 litre tin of honey that had ben sitting in the Pantry for many years till the outside went rusty, and th honey went candied. They wanted to throw it out, and not risk using it. I said that I would take it and we melted and used that honey over the next couple of years.
Honey never goes of, unless it has too much moisture in it.

