Should probably fix the comment to be a bit more specific, and also mention which indices hold which locks.