sqlite: Fix priority access handling
Acquiring a priority access means that the current thread will have priority over other threads attempting to acquire a sqlite lock, it doesn't acquire a lock in itself, so we need to ignore those when acquiring a sqlite connection handle.