While investigating #28 it was discovered by @hb-- that the root cause of the issue was the lack of xMutexHeld and xMutexNotheld. While these are not necessary for everyday usage of SQLite, they should be implemented to aide debugging and prevent red herrings (like #28).