Check for non-negative watch object in inotify_add_watch