ceph: correctly handle releasing an embedded cap flush