Don't create single-use prepared statements for Exec inside a txn

Some statement (like LOCK TABLES) cannot be run in a prepared statement.