[src-openEuler/rdma-core] libhns: Bugfix for wrong timing of modifying ibv_qp state to err