vm: fix 'keep' usage in stack_extend_alloc().

The parameter 'keep' was being set to 'size' (depending on the value
of size) and never used. I think it should be the other way around,
'size' should be set to 'keep' if 'keep' is larger than 'size'.