Support XA on remote connections; don't use the threadlocal session if it's for a different connection.