Currently, we set the hanging failpoint after starting the background build, but somehow the failpoint wins the race before starting the index build almost every time.
The doDuringFailpoint function should set the failpoint, call buildIndexInBackground, unset the failpoint, then wait for the index build to complete.