avoid calling sync(), which would throw exception, on non-deferred-write dbs