Fix DBCP-341
LocalXAConnectionFactory does not properly check if Xid is equal to currentXid when resuming which may result in an XAException.
Patch by Ioannis Canellos

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/dbcp/trunk@1563709 13f79535-47bb-0310-9956-ffa450edef68