This is required because the heap is shared among all tasks and protected using a mutex which only works in kernel space.