Added check for DB2 deadlock error

Currently, deadlock is only checked for in mysql and postgresql.
This adds a check for db2 deadlock

Fixes bug #1340793

Change-Id: Icef725ed75929ff13234ea58026e6bf0f2e2c852
Merge "Added check for DB2 deadlock error"