Allow sqlite to be used with journal mode WAL

refs https://github.com/owncloud/core/issues/10279