Fix Sqlite detection in lock method
Fix sqlite detection in lock method.
Hack to not pick Sequel persistor on non sequel session.

Would be removed when removend the use of ObjectSpace.
Merge pull request #205 from maxigit/58824964_make_spec_jruby_compatible

58824964 make spec jruby compatible