Block the session while creating the indexes.