[PATCH 182/237] ceph: fix potential race in ceph_check_caps