Clean up some Windows leaks, optimize symbol map a bit

I haven't been able to reproduce #5434 with these changes, but it was intermittent...

I'm a bit surprised how slow some games are/were loading in debug mode with "save symbol map" disabled.  This improves it, but it's still not fast (spends time in the jumpback scanning.)

-[Unknown]