[PATCH 5.10 375/663] ceph: fix flush_snap logic after putting caps