Changes to ensure mutex locking around index obj access in a manner similar to master.