Use filelist from build_variables.bzl to fetch distributed file list (#37090)
Summary:
Rename `get_filelist` to `append_filelist`
Repalce hadcoded filelist under `USE_DISTRIBUTED` with `append_filelist("libtorch_distributed_sources" TORCH_SRCS)` call
Pull Request resolved: https://github.com/pytorch/pytorch/pull/37090
Test Plan: CI
Differential Revision: D21184002
Pulled By: malfet
fbshipit-source-id: 25bb7f97fcb2bf5bec8bdb3aa059ae13e7610007