Make commit/retry critical section