Fix #17832: Weird handling of exports named main in 8.10-rc1
Switching from lookupGlobalOccRn_maybe
to lookupInfoOccRn
to check whether a main
function is in scope. Unfortunately
lookupGlobalOccRn_maybe
complains if there are multiple main
functions in scope.