Use threading lock

Both work for threading, but multiprocessing's one is more expensive