sched, inotify: Deal with nested sleeps