Put the deletion of profiling info under a GC critical section.
am: 99c959f386

Change-Id: I8302de355f210b78573d2a4b14a7bc1c53c2af7f