fix performance problem with multiple inotifies