Add mutex while scanning for hosts
Merge pull request #396 from koeppea/fix-scan-segfault

Add mutex while scanning for hosts