[MariaDB developers] Locking thd->LOCK_thd_data during group commit