Turn off the ability for Declarations.cwrap entries to be methods.
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/17053
Differential Revision: D14065887
Pulled By: gchanan
fbshipit-source-id: 5d06ac66d27d28d48c2aff2b0d911f34ea0cd6fd