Description of problem: unconditional ref of dict causes "dict is NULL" logs to be printed
REVIEW: https://review.gluster.org/22126 (io-cache: conditionally get ref to dict) posted (#1) for review on master by Milind Changire