Refactor lock-unlock create workers