Fix clang-tidy errors in csrc/Module.cpp
Summary: Pull Request resolved: https://github.com/pytorch/pytorch/pull/28283
Test Plan: Imported from OSS
Differential Revision: D18249632
Pulled By: albanD
fbshipit-source-id: 0c7c71b3b7c74d338a90850e06c841b399f5709f