[PyTorch] Use expectRef() when calling listConstruct (#50062)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/50062
Avoids creating an extra shared_ptr.
ghstack-source-id: 119325645
Test Plan: CI
Reviewed By: ezyang
Differential Revision: D25766631
fbshipit-source-id: f2ab8349dfea325054820fa2c1055180c740574e