an app can execute 'attach database..' statement anytime after WAL is enabled. since WAL doesn't work with atatched databases, disable WAL whenever the caller executes 'attach database' sql statement. Change-Id: I77dfcb744b59476c357d44296c14d63455985a7b