The problem found by Emilio. Trace plugin stores shared Refs in the unordered_set, but never really frees them (only at the end).
unordered_set