rename process_lock to lock
refactor task logic, remove heavy task_step_result