Handle monkey-patching of socket in exitmap.

That way, the scanning modules don't need to know anything about what we do
with the networking API.  Also, it makes the API simpler as the only parameter
a module gets, is the exit relay's fingerprint.