Python Cannot Pickle Thread.lock Object