http: remove free sockets when socket was closed

If the socket `close` event emit, we need to remove it
from the free buffers.