Fixes for where we lock in the kqueue FileSystemWatcher.