migration: unify stdio-based QEMUFile operations