0e1296e0ea
- acquire FOR UPDATE lock immediately after payment lookup, before is_paid check - use populate_existing=True to prevent SQLAlchemy identity map stale reads - replace intermediate update_platega_payment(commit) with inline assignments + flush - re-check locked.is_paid after lock in get_platega_payment_status - guard _finalize_platega_payment: only called when lock held and is_paid=False - suppress "message is not modified" TelegramBadRequest in message_patch