Private-equity firm Thomas H. Lee Partners LP has closed its purchase of a controlling stake in Ten-X LLC in a deal that values the online real estate marketplace at $1.6 billion, according to people familiar with the matter.