lib: Fix an error path memleak in schannel_get_creds_state()