Fix early transaction unlock when traverse done inside transaction.