A local commit is considered done when:
all commitment tx outputs that we can spend have been spent and confirmed (even if the spending tx was not ours)
all 3rd stage txs (txs spending htlc txs) have been confirmed