TimeStats: bound the stats pool size

On any device having TimeStats enabled, the stats pool will be cleared once per
day based on the stats pulling schedule. This change just adds an additional
protect in case the layer count explodes during a tracing period.

Test: TimeStatsTest
Change-Id: I3067239c12645008bceb61a1b7e59d8d6f89076a
2 files changed