The Microsoft cofounder’s long streak as the country’s first or second richest has ended—in part due to stock transfers tied to his divorce.