doc: avoid double-while sentence in perf_hooks.md
This improves readability, as well as awkward reptition of the word while with two different meanings in a single sentence.
Refs: https://docs.microsoft.com/en-us/style-guide/a-z-word-list-term-collections/w/while
Checklist
-
documentation is changed or added -
commit message follows commit guidelines