pipe: fix limit checking in pipe_set_size()