Fix SQlite Lock when use SchemaManager