workflow:index command should do a lock to prevent simultaneous runs

Description

Currently many workflow changes may result in a server takedown.

Technical tasks

None

Deployment actions

None

Assignee

Unassigned

External issue ID

None

Client

Marijn Otte

Min. hours

None

Dev hour estimate

None

Fix versions

Configure