[pytorch] revert register c10 ops for static dispatch (#35148)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/35148
PR #34275 (commit 064c47845380715e290eb335919a18fe3821ee83) causes size
regression for BUCK build before BUCK selective build is enabled.
This PR reverts partially (adding back #ifndef USE_STATIC_DISPATCH) to
fix the size regression. Will wait for BUCK selective build change to
land and soak then revert this revert.
Test Plan: Imported from OSS
Differential Revision: D20578316
Pulled By: ljk53
fbshipit-source-id: 694f01ec7a69fe3758a389e22e9de20ecd867962