[PATCH 5.11 456/775] ceph: fix flush_snap logic after putting caps