security (minor): In KeyChain. getIdentityManager, return a const ref to the shared_ptr.