Stats : Add time spent in index throttle.

Changes after review. Now track the time actually throttle locked rather than when we could be throttle locked.
Also add test that failed to make it in to last commit.