Allocates the required memory for the aggregate intermediate storage structure defined by an aggregate UDF.
FNC_DefMem returns a pointer to the allocated memory.
If FNC_DefMem cannot allocate the memory (typically because the value of len is too big), FNC_DefMem returns a NULL pointer.