SERVER-39097 didn't quite eradicate saving an opCtx pointer as a class variable in all of the index builder code. The TemporaryKVRecordStore, which is used for the index build temp side writes and constraint violations tables, is still hanging on to a pointer.
This ticket is to surface the opCtx dependency so that it can be passed as a function parameter when needed down into the TemporaryKVRecordStore instead.