sqlite: better patch for Tiger issue

This actually fixes the problem, instead of working around it.