lua-sockets: get rid of pton4-6 and resolving optimization.