[PECOFF] Make WinLinkDriver::parse() and allocate*() functions thread-safe.

Looks like a major cause of instability on Windows is this thread-safety bug.