Function `module_add()` may leak stack of modules when
it fails to initialize newly added module.
Fixes #23835
Reviewed-by: Matt Caswell <matt@openssl.org>
Reviewed-by: Tomas Mraz <tomas@openssl.org>
(Merged from https://github.com/openssl/openssl/pull/23836)