acm.c: Report an error if ibv_query_gid is failed