socket: close all the sockets

As in close_files(), close all the sockets, not half.

Signed-off-by: Kees Cook <keescook@chromium.org>
Reported-by: Brad Spengler <spender@grsecurity.net>