Fix race condition in qpTestLog debug asserts