[couchjs] make stack size option effective

The previous way this was coded changes the chunk size that is used
whenever the stack grows but does not change the maximum memory
allowed by the runtime.

Closes COUCHDB-1792