correctly initialize luasocket (avoid SIGPIPE) and check that a unix socket hasn't already been created