Consolidate VariableTracker construction through variable builders in exc.py, utils.py, nn_module.py (#173451)
Summary:
Route direct variable construction through SourcelessBuilder.create() or VariableBuilder
where tx is available. Some callsites in static handler methods that lack tx
context are left unchanged.
Uses local imports to avoid circular import issues.
Address step 1 described in https://github.com/pytorch/pytorch/issues/170361
X-link: https://github.com/pytorch/pytorch/pull/173451
Approved by: https://github.com/Lucaskabela, https://github.com/anijain2305
ghstack dependencies: #173439, #173441, #173442, #173458
Reviewed By: izaitsevfb
Differential Revision: D92237691
fbshipit-source-id: ee21d8602fce0bb8f335fece17e1f86fa0a64a69