Store the smart ptr to a proto_env in a proto_view_identity.

It ensures that the unified proto_env is kept alive as long as the
proto_view_identity is stored. Useful for visitors that rebuild the
whole DD.