Use LOCALHOST as SQL Server hostname if needed.

Fixes ZEN-10863 on the hotfix/2.0.3 branch. develop branch already has a
better fix.