Fixed access violation between two threads when accessing the status message buffer