Allow sqlite to be used with journal mode WAL

refs https://github.com/owncloud/core/issues/10279
I'd suggest to support only one option and drop the other one - no need to support multiple things of which one will be then nearly completely untested by us developers.