core: interrupt: use the more generic vlc_poll_file_i11e() to check file interruptions
This API has no effect on Windows and is documented accordingly.
Replaces !2158 (closed) by providing a more generic API that allows all I/O calls and still check for VLC interruptions (except on Windows).
Also fixes the interrupt test that used file APIs on socket file descriptors.