Conditionally exclude certain inotify flags for older kernels.