Fixed potential rare synchronization bug when reverting empty writing transaction.