[PATCH 4.19 16/23] ceph: fix use-after-free bug for inodes when flushing capsnaps