That's a compile time option.  Using strictly packages from upstream, it can't be done.  If you wanted to compile screen yourself, you could accomplish this.  Look in the config.h.in file.  Near the top will be # define MAXWIN 40. Change that to your new limit.
(more info)