I just noticed it was technically possible for the "work thread" (in py plugin manager) to be started twice, due to improper lock/unlock calls.
All calls to/from python are performed on one thread via a simple message queue (necessary because of the global interpreter lock).