[Selective Build] Move register_prim_ops and register_special_ops to app level (#43539)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/43539
Move the two source files out of the base internal mobile library to the app level. Make it ready for app-based selective build. Opensource build should not be affected. The file list change in build_variables.bzl affects internal build only.
ghstack-source-id: 111006135
Test Plan: CI
Reviewed By: ljk53
Differential Revision: D23287661
fbshipit-source-id: 9b2d688544e79e0fca9c84730ef0259952cd8abe