cosmetic fixes in lib/client/socket