We need a soft-durability sync for the application in the batch-splitting code.
Fail if sync() is applied behind a between. Added a couple of test cases.
Merge branch 'daniel_sync_term' into daniel_slow_flushes