Fix race condition in MP log output MP-522