Improve the way we find the transaction matching a reply.

Signed-off-by: David Navarro <david.navarro@intel.com>