http: remove free sockets when socket was destroyed

If the socket was destroyed, we need to remove it
from the free buffers.