Use optimistic locking when polling workflow instances.
WorkflowInstanceDao: Fix formatting.
Merge pull request #70 from NitorCreations/workflow-optimistic-lock

Use optimistic locking when polling workflow instances.