Fix timing issues in logging test even more.