Fix socket setopts.