handle: Define DEFAULT_MEMSIZE, MIN_MEMSIZE constants.

This is just code motion.