Dependency-based work queue for concurrent processing