Fix the bug of process lock and parallel

修复了进程锁与并行的错误