[CRYPTO] api: Read module pointer before freeing algorithm