Fix _Waitcounter decorator and dd backward pass wait counter (#150235)
Summary:
This will log a wait counter with for backward compile and fixes weirdness with nested context managers.
Since the old wait counters added through dynamo_timed were never created with the nesting issue. I am also changing the key nomenclature from `pytorch.dynamo_timed` to `pytorch.wait_counter`. We want to use the same nomenclature, to make it easy to find keys.
Originally Reviewed By: jamesjwu
X-link: https://github.com/pytorch/pytorch/pull/150235
Approved by: https://github.com/jamesjwu, https://github.com/masnesral
Reviewed By: jamesjwu, clee2000, masnesral
Differential Revision: D72032055
fbshipit-source-id: e97d40212b6568f5918f924e2d7804fb813dc184