Made us actually wait for exclusive access to the mutex acqs we are using with index_write.
Merge branch 'sam_multiple_index_writes' into sam_multiple_ii