Move per-HTLC logic out of get_claimable_balances into a helper