Fix for a ref-count issue in VST2 plugin windows