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, which usually only happens when the value of len is too big, a NULL pointer is returned.