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/branches/DBCP_1_5_x_BRANCH@1563710 13f79535-47bb-0310-9956-ffa450edef68