Localize lock

Lock to access map with sessions is localized now. So service thread can work while main thread packs call and sends it to service.