Lua download wait_id is not freed if we don't wait for that id
If we don't wait for given wait_id then it's not freed. This can easily happen if we encounter some error with previous downloads. Currently it's not that big issue as in such case we just strait for shutdown or it's just sporadic situation. But it's bug.