allow access to cache object through context

this surfaces the struct kr_cache through context variable,
it doesn't implement any API or documented interface for it,
so I just added a tests for the struct presence and introspection
11 jobs for vendemiat/extend_kres_lua
in 6 minutes and 55 seconds and was queued for 7 seconds