With BotFather Threaded Mode on, Telegram stamps a message_thread_id on
ordinary DM messages and build_session_key folds it into the DM key, so
one chat ran several concurrent sessions (one busy guard each): a
re-sent question started N parallel turns and N simultaneous final sends.
platforms.telegram.extra.dm_threads: shared drops the DM thread id from
the session key outside /topic lanes and declared dm_topics threads.
Default per_thread keeps the historical isolation; an unknown value warns
once and keeps per_thread. One helper (gateway/session_dm_threads.py) is
applied by every key builder: SessionStore._generate_session_key (store,
cron seeding, admission envelopes), the adapter batch/busy key, the
runner fallback key and the handoff key.
Fixes#107133