mem: fix resize return handling for --single-file-segments