sd-event: make sd_event_prepare() return positive when buffered inotify data exists
Previously, even if there is buffered inotify data, sd_event_prepare()
did not process the data when there is no pending event source.
Fixes #23826.
(cherry picked from commit 067fc917026fd1fe601de0198c5ea7b3ba782d1e)