PC crash when removing thumb from AudioThumbnailCache

Our app is crashing on the PC when resetting a view that removes a thumbnail from its AudioThumbnailCache, using removeThumb(hash). I don’t see what might be causing the problem, but the call stack shows it crashing when TimeSliceThread.removeTimeSliceClient() creates a local GenericScopedLock at the top of that function. This code leads to CriticalSection.enter(), which then leads three levels deep into machine code I can’t parse, before crashing with an Unhandled Exception. Any ideas? (We’re using Juce 7.0.5, btw.) Doesn’t crash on Mac.

Ah. Changing order, as suggested in another related post, seems to fix it. Strange, though, that the thumbnail cache is a member (unique_ptr), so I would think it would not be destroyed until after the destructor has run its contents. Maybe there is an asynchronous component in play with that class which makes the removeThumb() actually complete after the destructor completed?