Added lock around index structure.  Thanks for Chuck for spotting this!!...

...!

Missed this in my prior updates to thread safety.  Helps, but doesn't fix, https://github.com/plfs/plfs-core/issues/166