filesystem: watchdog: avoid holding the lock when dispatching events
* as Komodo may try to require the lock on another thread

(integrated from trunk branch change f1e06a9 by Todd Whiteman <toddw@activestate.com>)