Revert "plugins/Plugin.pm: fix bad state file handling"

This reverts commit bf7a258081d64bb6174f83482d5d6dd53cb5909a.

It breaks some plugins, like diskstats.
Merge branch 'fix-state' into stable-2.0