Fix inotify unit test.