core/heap: Fix compile error if HEAP_DEBUG is defined