Reindex object security when changing workflow state.

@phgross can you take a look a this?
We manually set the workflow state, which requires a `reindexObjectSecurity` so that the `allowedRolesAndUsers` index is up to date.