[pytorch] simplify lazy initialization of DefaultCPUGenerator singleton (#32897)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/32897
Moving the default static instance into the method to achieve the same purpose.
ghstack-source-id: 97570792
Test Plan: - CI
Reviewed By: dreiss
Differential Revision: D19674566
fbshipit-source-id: 27f54da66dd7667c34905eddaac6579e64aa1118