I have had no issue with Claude writing code that uses lifetimes. It seems to be able to reason about them just fine.
I don't know what to say. May experience does not match yours.