update portmidi plugins with c++ mutex