Don't block stats for read-only indices

Closes #5855