[pt2][inductor] Ignore trace.upload_tar when pickling config (#96519)
Summary: if trace.upload_tar is set, it's a function, and it can't be pickled.
Test Plan:
Used on a Meta-internal workload; also, hacked up
test/inductor/test_smoke.py to set trace.upload_tar and ran with
TORCH_COMPILE_DEBUG=1
Reviewed By: mlazos
Differential Revision: D43915178
Pull Request resolved: https://github.com/pytorch/pytorch/pull/96519
Approved by: https://github.com/ngimel, https://github.com/jansel