How to express the lifetime relationship in lambda capture