Fix test_ind_worker_queue by setting max_num_worker based on system resource (#63779)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63779
Fixes #63657
Test Plan: Imported from OSS
Reviewed By: gchanan
Differential Revision: D30494185
Pulled By: ejguan
fbshipit-source-id: d1bd24299b25d589889604aaf18ad347bdff4df4