modgc: Add mem_free()/mem_alloc() methods.

Return free/allocated memory on GC heap.