[PULL 25/25] migration/rdma: Split qemu_fopen_rdma() into input/output functions