[PATCH 4.9 18/65] ceph: fix use-after-free in __ceph_remove_cap()