fixes issue 795 i#689 part 2: do not call app size routine unless need padded size + i#689 part 1 DRWRAP_NO_FRILLS actually removes drwrap lock and   fixes i#795 for practical purposes + this eliminates the call to the app size routine altogether,   which is a performance win as well + add check for malloc lock while calling app size routine   to avoid deadlock for options.get_padded_size
fixes issue 795
i#689 part 2: do not call app size routine unless need padded size
+ i#689 part 1 DRWRAP_NO_FRILLS actually removes drwrap lock and
  fixes i#795 for practical purposes
+ this eliminates the call to the app size routine altogether,
  which is a performance win as well
+ add check for malloc lock while calling app size routine
  to avoid deadlock for options.get_padded_size

SVN-Revision: 777

sigma-random/drmemory,LohithBlaze/drmemory,code4bones/drmemory,sigma-random/drmemory,code4bones/drmemory,LohithBlaze/drmemory,code4bones/drmemory,LohithBlaze/drmemory,sigma-random/drmemory,sigma-random/drmemory,LohithBlaze/drmemory,code4bones/drmemory,sigma-random/drmemory,code4bones/drmemory,LohithBlaze/drmemory