Lock Internal Plan X
Deadlocks and Lock timeout are caused by LOCKs Internal Plan (X)
Check if there are invalid packages on database:
select PKGSCHEMA from syscat.packages where valid<>'Y'
If invalid packages were found, apply db2rbind command to fix the problem:
db2rbind <dbname> -l <logfile>