server/lib: Make Client own the socket, and forbid copying