runtime: max_noutput_items is set globally but it should be local to a block.

When max_noutput_items is overridden within a block, the scheduler uses it as a default value for other block when the configured default value should be used instead.

Without this patch, some block may not run when max_noutput_items is smaller than min_noutput_items or multiple values.