fix: Modify event in pyperfstore2.work() but still store perfdata in internal thread