kiji-rest: REST-116. Fix unclosed resources in InstanceCache.

issue: https://jira.kiji.org/browse/REST-116
review: https://review.kiji.org/r/1740
commit: https://github.com/kijiproject/kiji-rest/commit/ec41e4b1114783b77163cd644a105b57da71c353