add a utility function to convert a unique_ptr to a shared_ptr without having to provided the nested type.