Fixed RunInTransaction consistency issue.

This restores the functionality that allows memcache to be locked just
prior to applying a transaction. It allows transactions to take as long
as necessary without worrying that a lock is going to expire.