socket: Remove dangling sockets from hash and poll lists

Signed-off-by: Pavel Emelyanov <xemul@parallels.com>