Ensure that we init the shared cache when asking for a cursor before
asking for a session.