Fix issue #76: allocate mem to store pCreationAttributes so that it won't be freed in asynch function.