migration/rdma: Replace dangerous macro CHECK_ERROR_STATE()