Use optimistic locking when polling workflow instances.