Prevent the in-memory journal read cursor from entering an inconsistent state
when it reads the last few bytes out of the journal file. Fix for
ticket [7f7f8026eda38].
check-in: c4b9c611 user: drh tags: trunk