Fix for multiple events being skipped during an inotify read