A guarded calloc/free to be used primarily by other drivers that handle FMI2 standard compliant libraries.