mutex lock the g_localaddresses as under very rare conditions it can segfault at startup when initializing many receive threads with many addresses