Fix a race on watchedPlugins.
Fix a race on watchedPlugins.

Fix part of #395.

farhaanbukhsh/lime,farhaanbukhsh/lime,crr0004/lime,farhaanbukhsh/lime,crr0004/lime,farhaanbukhsh/lime,farhaanbukhsh/lime,crr0004/lime,crr0004/lime,crr0004/lime