add synchronization option for diskfile

'writethrough' is still the default
'flush' will use writeback on all keys and flush on the final key
'writeback' is probably not fully safe

fixes #5