@benbjohnson I think we need to add some comments to make this function more easy to understand. 

Find the node with the largest index in the lockNodes that is smaller than the given index. Also return the lastModified index of that node.