fix race condition in async log