Flush transaction to ensure correct numbers of unread entries are counted.