Nested parallelism in Python,pickle.dumps(threading.Lock())