http: fix keylog listener setup on existing agent sockets