wg: fix MOD_LOAD to fail properly if cookie_init() fails
Previously we'd jump to the free_crypto label, but never set ret to
a failure value -- it would retain success from the call just prior.
Set ret up properly.
(cherry picked from commit ad9f4e6351fb23ee81bc940638d20af3ca7c278d)