[PATCH] Avoid multiple updates to same rows in taskSetWait