"So" is just an intensifier here. "It smells so [much] of onions."
This is probably not an example, but I believe American teenagers are beginning to use "so" in hitherto ungrammatical ways. So you'll probably have to get used to that too.
It so makes me wonder where English is heading! (sic)