[PATCH v2 3/3] advapi32/tests: Retry on failure instead of using unconditional Sleep().