fix clang-analyzer warnings in rbd and objectcacher