delayed process with lock