Fix: Using volatile pointer to shared memory.
Fix: Moved pid to shared memory.
Fix: Moved heaps_increment call to newobj from the signal handler.
Fix: Reset CGC_FL_MALLOC_INC and CGC_FL_HEAPS_INC after use.