hp malloc: do not write the pattern file when "mem_warming" = 0

	* also improve the logging at shutdown
(cherry picked from commit 19832c6a24a8a3f291b744e739d8c3e3c0670267)