Set Autocommit before checking for Tx insert lock