Race condition when creating second VST2 plugin

Using ThreadSanitizer, I’ve stumbled upon a race condition when loading two out-of-the-box JUCE audio plugins (nothing added to the Projucer default code) on two different tracks (tested in Reaper). Steps to reproduce: start Reaper, load test plugin on one track, load second instance of test plugin on other track.