lua-sockets: simplify code, align box_socket to reduce holes.