Fix sonar issue in performance test ResourceMeter

Replace busy loop with await().until as suggested by sonar

Issue-ID: CPS-89
Signed-off-by: danielhanrahan <daniel.hanrahan@est.tech>
Change-Id: Ic6c870c419a67708082ceb05ef3ccba884ae375e
1 file changed