added a mutex around connection list rebuilding
many internal mutexes added to make this mt-safer