Added hot fix for CREATE INDEX parallel processing issue

Sometimes we receive "SQLITE_ERROR" instead of "SQLITE_LOCKED" while running several "SQL INSERT" queries in parallel.

This happens while executing a "CREATE INDEX" query right after data has been successfully inserted to the table.

So far indices are built properly after this hack.