Ongoing debugging on SpatiaLite database locking problem