ceph: allow ceph_put_mds_session to take NULL or ERR_PTR