Only update the consistent timestamp if there are pending transactions.

This is to prevent replication source iterator (which read up to consistentTimestamp) to reach the end of the log when the consistentTimestamp is updated.