Use pipe instead of stdin in t/fileevent2.t

t/fileevent2.t fails if standard input is not a blocking descriptor
without read events. E.g. /dev/null. This patch uses a private pipe
instead of relying on stdin which can be anything.

CPAN RT#98891

Signed-off-by: Petr Písař <ppisar@redhat.com>