Fix localmsg call issue in multi thread.
Failed to create file(s) in multi-threading.