[PATCH OLK-6.6] maple_tree: avoid checking other gaps after getting the largest gap