Add lint for unused lifetimes

A step towards  #12805.
Yes, the compiler is handling these lifetimes specially.