[PATCH 10/13] passt-repair: Split out inotify handling to its own function