Calls sqlite3_malloc() to allocate len bytes of memory.
If len is zero then sqliteAllocOrThrow() allocates at least 1 byte