trx->state change must be guarded by trx->mutex. Moved mutex locking to MVCC::view_close().
Attach a file by drag & drop or click to upload