[PATCH 4.19 189/245] ceph: fix potential race in ceph_check_caps