Make db.GetChangeLog checkpoint the changesWriter (fixes unit tests)

There were occasional race-condition failures in TestAllDocs, apparently due to
the channel-log not having been rewritten by the time GetChangeLog was
called.
Fixes #277 (but haven't been able to verify it on my machine)