package_install: flush messages before sleep independently of number
of waiting downloads