Fixing a concurrency issue in aggregation suggestion query

The code runs two consecutive queries assuming that the
data would not change between them.  Adding a explicit
transaction boundaries to ensure data consistency.

Bug: 3364441
Change-Id: Ib447595496d69ebfc1f01740081a73c8116a642f
1 file changed