migrate to using non-odr capture of ctor and dtor

capture ctor and dtor in lifecycle_traits via non-odr auto& capture to
avoid the need for symbol emission and to minimize keyboard typing.
Merge pull request #1 from hanumantmk/master

migrate to using non-odr capture of ctor and dtor