Merge pull request #1463 from apache/tristan/fix-concurrent-blocking-activity

plugin.py: Avoid import errors on certain platforms