http: Do not setTimeout a not-yet-existent socket

Fixes #4967