object cache: correct bypass_object_cache

We should check object type as early as possible

This fix 'cluster snapshot' failure with cache enabled.

Signed-off-by: Liu Yuan <namei.unix@gmail.com>
Signed-off-by: MORITA Kazutaka <morita.kazutaka@lab.ntt.co.jp>