Update SQLitePlugin.java

Fix thread issues on database opening (WARNING... getThreadPool...) that can produce an error and stop database opening.
Maybe it's necessary to do it also for the close and delete  functions?