Fix multithread issue in localmsg API

Why do we need the *creatingQueue*?