It isn't clear to me yet how to solve this problem. I've set Kaspersky's web monitoring to ignore http://localhost. So that should mean that any local activity is ignored. But I still get the hangs. When I disable Kaspersky's web monitoring, the hangs go away.

I'll have to experiment, and send a support email. I can't be the only person to experience this.