Stats : Add time in index throttle to stats.

This PR adds the time spent throttling indexing to a single thread to the stats API.

Closes #7861
there is also no test for this at all I think we need one that 1. checks that is works and 2. that it's 0 if no throttle :)