Made TransactionProfiler handle interlaced transactions better

* Previously the list of involved DBs might be incomplete

Change-Id: I75b91d3b9a951169038b40b9cf2f59707ba0c11d
Merge "Made TransactionProfiler handle interlaced transactions better"