sqlite locking fix