Fixed pyinotify performance regression in 15f82c7011

Fixes again #9722.
I would call it "handles_files" and add a brief coment