Improve malloc_debug_common when disable property system.

 - Use environment variable MALLOC_DEBUG and MALLOC_DEBUG_PROGRAM
   for malloc debug.