ceph: fix null pointer dereference in ceph_flush_snaps()