base library: RAII wrapper around Linux inotify