0
It's possible that _thread.lock is actually a method instead of a regular class object. pickle didn't pickle methods, last I checked. However, dill does. You might try using dill instead of pickle and see if it works.
If you're on Ubuntu, you can install it with sudo apt-get install python3-dill.