(PUP-1368) Backport crash fix for win32-api gem.

This fixes a crash due to uninitialized memory where FreeLibrary was
being called on undetermined values.