ceph: fix session locking in handle_caps, ceph_check_caps