Made atomic usable when autocommit is turned off.

Thanks Anssi for relentlessly pushing me to implement this.
Removed atomic_if_autocommit.

Atomic now works even when autocommit is turned off.