fix code typo in `MysqlAdapter` .Closes #12647.

Conflicts:
	activerecord/CHANGELOG.md
use a thread local rather than a queue so events are in the right order