Shadow implementation of SQLiteDatabase.isDbLockedByCurrentThread()

SQLiteDatabase.isDbLockedByCurrentThread() was throwing a NullPointerException in a nested call to private method getThreadSession(). Adding an implementation to ShadowSQLiteDatabase that made use of the internal RecurrentLock scheme solved the issue.