Create a new lock object. See help(type(threading.Lock())) for information about locks.
_thread/allocate_lock
allocate_lock