sctp: fix the check for _sctp_walk_params and _sctp_walk_errors