tony: C API: Simplify lsm_capability_set_n