Revert "Disable sqlite same thread check. (Re:Issue #654)"

This reverts commit 03780eab62d3aabce9036e947bfa5faa77ece451.