Retry when failing update database when processing received status.
Add debugging code about checking acquisition of the locks.
Fix: deleting update binaries is maybe not worked well.
Retry queries after failing query to database.