NXP-12763 avoid returning connection in XA pool with wrong state