Make the var vmod ESI safe

Change the memory allocation strategy to malloc rather than
workspace. This to make the variable vmod safe to use in an ESI
environment, when an ESI subrequest sets or changes a variable that is
later read by another ESI subrequest.