refactor(turbo-tasks): Port task statistics to the new backend (#75303)
This was available on the old memory backend, this ports it to the new backend, which is important now that it's the default.
Plus, the code's cleaner now that the trait resolution hack I had was cleaned up in #75214!