mutex arnd map; handling concurrent access to connection map