Fixed pyinotify performance regression in 15f82c7011

Fixes again #9722.
a comment about why isinstance isn't appropriate (recursive issues I assume) would help and also mention sender is something like WSGIHandler/StaticFilesHandler.