mem: error if requesting more segments than MAX_MEMSEG