Fix hostdb deadlock and update constants
Created by: ChrisSchinnerl
This PR fixes a deadlock while scanning a large number of hosts and changes some constants to make scanning faster. On my machine the download bandwidth hardly reached 20 kib/s with 250 threads so I guess those settings are sane.
This should also fix this issue.