Zebediah Figura (@zfigura) commented about dlls/ntdll/heap.c:
category = heap->categories + BLOCK_SIZE_CATEGORY( block_size ); if (category == last) return STATUS_UNSUCCESSFUL;
- heap_lock( heap, flags );
Maybe not worth doing at this point, but I think this can get moved below the block initialization.