fixes Dr. Memory issue 333 + the shared ntdll uses a custom free list for critical section debug   info, resulting in mixing app and priv heap objects, which results in   asserts or crashes.  fixed by providing own impl of critical section   alloc and free.
fixes Dr. Memory issue 333
+ the shared ntdll uses a custom free list for critical section debug
  info, resulting in mixing app and priv heap objects, which results in
  asserts or crashes.  fixed by providing own impl of critical section
  alloc and free.

SVN-Revision: 639

sigma-random/dynamorio,bl4ckic3/dynamorio,bl4ckic3/dynamorio,sigma-random/dynamorio,bl4ckic3/dynamorio,daksunt/dynamorio,bl4ckic3/dynamorio,AmesianX/dynamorio,AmesianX/dynamorio,daksunt/dynamorio,code4bones/dynamorio,sigma-random/dynamorio,AmesianX/dynamorio,code4bones/dynamorio,daksunt/dynamorio,sigma-random/dynamorio,daksunt/dynamorio,code4bones/dynamorio,bl4ckic3/dynamorio,code4bones/dynamorio,AmesianX/dynamorio,AmesianX/dynamorio,daksunt/dynamorio,sigma-random/dynamorio,code4bones/dynamorio