[IMP] Use multiprocessing.Lock