[pytorch] Make qlinear weight packing thread safe (#63804)
Summary:
Pull Request resolved: https://github.com/pytorch/pytorch/pull/63804
Adding a lock around weight packing section of qlinear + qlinear_dynamic
Test Plan: automated tests
Reviewed By: kimishpatel
Differential Revision: D30340957
fbshipit-source-id: 1c9faf796c4ffbc74345396188a6f1154a76bea6