The solution would be to drop the lock_sys->mutex (lock_mutex_exit) much before the kill, and re-acquiring it in innobase_kill_connection
The solution would be to drop the lock_sys->mutex (lock_mutex_exit) much before the kill, and re-acquiring it in innobase_ kill_connection