Convert VariableVersion counter to intrusive_ptr, saving a memory allocation on every Tensor.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/22514
Differential Revision: D16114714
fbshipit-source-id: 441043d18938710869b64cb67884f49cd6060727