proc_test: use kernel dynamic memory if CONFIG_KERN_HEAP is enabled.