[PATCH 4.14 131/166] ceph: fix potential race in ceph_check_caps