SWF task polling fixes - EUCA-9925

Activity task polling could loose execution history events due to the
workflow version not being incremented on start.

Decision task polling could fail due to lock acquisition failures. The
transaction is now retried if there is a locking failure.

EUCA-9925
Merge remote-tracking branch 'origin/dev/sjones/EUCA-9925' into testing