Main reason for this error will be deadlock time out properties. To view this property value issue the following command:
Display Database Manager Configuration Settings:
Display Database level Configuration Settings
If dead lock time out value is -1 then change to either 60 or 120 sec based on your DB transaction.
n - number of sec.
For more information on dead lock please visit this link
http://db2forum.blogspot.com/2011/10/db2-lock.html