I think the factor has to be time rather than socialism
It’s material development which wipes away religious prejudice by doing away with oppression by nature (in the West’s case, there is also the interest of exploitation of the globe, and so this acceptance is granted only to the “herrenvolk”).
Regarding China’s improvement:
“For member[s] of the Chinese LGBT community, the greatest source of pressure to conform to societal norms of sexuality and identity comes from family members—particularly parents[…] a higher level of economic development in provinces was associated with a decrease in discrimination, and we identified that every 100 thousand RMB increase in per capita GDP lead to a 6.4% decrease in discriminatory events perpetrated by heterosexuals[…] The prevalence of this discrimination is associated with the economic development of the province in which it occurs” (BMC Public Health 2020).
It’s material development which wipes away religious prejudice by doing away with oppression by nature (in the West’s case, there is also the interest of exploitation of the globe, and so this acceptance is granted only to the “herrenvolk”).
Regarding China’s improvement: