Actually implement slot cache in CIH.

Signed-off-by: Matt Benjamin <matt@linuxbox.com>
Fix two apparent (old?) bugs in CIH cache-hit path.

1. assoc check (if valid) must  ensure associated!=NULL
2. the above check also leaked refs (I think)

Signed-off-by: Matt Benjamin <matt@linuxbox.com>