Bugfix: postponing processing a task because the file is locked should prevent all subsequent tasks from that share to be postponed too, otherwise, files could be lost.
Bugfix: empty the du_stats table before adding a UNIQUE index on it, or it might fail.