avio: add avio_open2, taking an interrupt callback and options