Ferreira, who replaced former Real Madrid midfielder Lucas Silva just after the hour mark, struck in the 92nd minute with a glancing header after an Alisson de Freitas corner.
"During his time, Ang Rita was considered as one of the strongest climbers," said the former NMA president. The NMA is an agency involved in promoting mountaineering in Nepal.
She had hoped to make her comeback at Roland Garros, the main draw for which begins on September 27 and runs through to October 11, but has withdrawn from the event last week.
It wasn't until the 104th minute that Bayern finally sealed the win, thanks to a header from substitute Javi Martinez.
Racing moved to second in Group F, three points behind leaders Nacional of Uruguay. Alianza Lima occupy last place, having failed to pick up a point from four matches.
Having played for Juventus for four seasons, the 33-year-old joined Bayern Munich in 2015, before moving to Barcelona in 2018.
Matthew Wolff of the United States came second at even par and South Africa's Louis Oosthuizen was third on 282.
Shanghai dominated the second half with several scoring chances. Hulk hit the post twice but couldn't find his second goal of the match.
Dalian pulled one back four minutes later when Salomon Rondon tucked an unchallenged shot into net. The hosts pushed hard for an equalizer in the second half, but none came, and Gao Lin headed home from a free-kick to add a third for Shenzhen in the 74th minute. Enditem
In his two years at Camp Nou, the Chilean midfielder has added another league winner's medal to his collection, making it an incredible eight leagues in row in three different countries.
Shanghai is scheduled to meet Beijing Guoan in the next round on Friday, and will secure the top spot going into the second phase if it could remain undefeated. Shijiazhuang will fight against Chongqing Lifan on the same day.